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!

3 Answers 3

2

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

0
1

Append this to your search: ContentType="Folder"

2
  • Can you please improve your answer with some more brief explanation.
    – Asad Refai
    Commented Sep 30, 2015 at 5:19
  • 1
    @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
    Commented Oct 24, 2019 at 15:04
1

Append this to your search: ContentType="Folder" FolderName

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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