1

What is the best way to show only folders in the search results?

I've tried adding a search refiner for Content Type but the Content Type search refiner doesn't show up. And yes, I've added a new mapped property, as the original Content Type mapped property is not able to be used as a search refiner.

Thanks!

2

What you can do is use the IsDocument property: IsDocument:0 Here

0

Append this to your search: ContentType="Folder"

  • Can you please improve your answer with some more brief explanation. – Asad Refai Sep 30 '15 at 5:19
  • @AsadRefai To be quite frank, what is there to explain? It's checking if the content type is of folder (which isn't always the case, some are a weird text utf8 folder content type). It's just as descriptive as the accepted answer – Zain Oct 24 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.