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

Microsoft 365 and Office SharePoint For business Windows
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 51,836 Reputation points Microsoft External Staff
    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.