OneDrive Search Files/Folders not returning expected result

I am trying to find a folder in OneDrive, which worked up until recently, so not sure if / what changed.

Workflow:
Copy a folder structure from somewhere else in the folder structure, rename the top folder to something else, then search for that top folder.

However, instead of returning the top folder, the search returns random folders further down the folder structure -that doesn’t even include the search term being used.

From the image you can see that the search term is ‘Christchurch1’, but the result returned is the ‘Authorities’ folder, which is further down the structure.
I know the search will return results in meta data, files, etc. but surely if the top folder is the only folder with the search term, it should be the only result returned?

Ideas / suggestions?

@Kevin_V Can you share a screenshot of search files/folders module settings?

I can’t grab the whole module, but here is the relevant part.

Passing the Folder Id of the parent folder.
Also, last field is set to only return 1 result.

The reason your search returns multiple folders is because it searches not only by the folder name but by any data available for a given folder. In your example your query search is christchurch1 and it’s found in the weburl of “04.Authorities”.
So your search is going to output all the folders in the parent folder by the name of which you do your search.
The workaround for this can be just adding a filter after your search module to filter out only the folder where the NAME is your query search value.

Thanks @Araks_Yeprikyan - I’ll give that a go.

Always welcome, let me know if something is unclear or you have any questions.

1 Like