Sharepoint

Linus Kujava 96 Reputation points
2021-07-20T15:59:19.18+00:00

Hi There,

Does anybody know how I can filter the search criteria in Sharepoint to only search for folders? Our current set-up for files in Sharepoint is folders pertaining to particular accounts we have, then the year we uploaded certain files and such. So basically Folder-Folder-Folder-File. We have a big list of folders when beginning to search and currently when we search only files will show up. Any help appreciated.

Thanks again

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,693 questions
0 comments No comments
{count} votes

Accepted answer
  1. Linus Kujava 96 Reputation points
    2021-07-26T13:12:13.217+00:00

    Hi Emily,

    I am having trouble finding the Search Result sources button. After hitting site settings, this is what I see:

    Th117945-screenshot-5.pnganks again,

    Linus


1 additional answer

Sort by: Most helpful
  1. Emily Du-MSFT 46,166 Reputation points Microsoft Vendor
    2021-07-21T10:41:46.633+00:00

    @Linus Kujava

    Based on your description, I understand that you want to only search folders in the document library in the SharePoint Online.

    You could use IsDocument:0 in the search query.

    Before:
    118239-1.png

    Result:
    118262-2.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.