Forum Discussion
Search result displays folders and their content nto folders only
Hi there,
I have created a flow which re-names files in SharePoint folders overnight. The flow works fine btu the issue is that when a user searches in SharePoint for a folder, the contents of that folder are also displayed. I have searched online and found out that when adding "isDocument=0" to the search, only the folder is listed in the search result ( as per screenshots). Is there a way of making this default ? or any other solution pls ?
P.S. In the example screenshots below I search for folder 100747 and the contents of the folder are also listed in the results (screenshot 1). Then I perform the same search and add "isDocument=0" after the folder name, and only the folder comes up in the results.
Hello bui_007
you can not change the search suggestions in the Microsoft Search bar. Here are a documentation with all existing settings for the Microsoft Search box: https://learn.microsoft.com/en-us/microsoftsearch/manage-spo-search-box?WT.mc_id=DX-MVP-5004845
Als alternative you can create your own vertical with the query isdocument=0.
Best, Dave
- bui_007Copper Contributor
DaveMehr365 Hi David, Thanks for your reply. My difficulty is that sharepoint search was working as explained in my original post and now it`s not, hence usera are finding it difficult to search for Files and Folders. I also tried to do re-indexing but still the same. I think there must be a way of making Sharepoint search as I described in the original post ?
- Cheryl HilbornCopper Contributor
bui_007 , we are having this same issue. The search function was just returning the folder name, and now it has the folder and all of it's contents as separate items. It has to have been an update - but it is annoying as finding folders takes longer now.