Greetings,
I was wondering how the path in the search API is supposed to work.
If I include folders of my document library in the path, files are missing in result.
When I use a query like
"query": {
"queryString": "\"KEY1*\" path:\"https://tenant.sharepoint.com/sites/SITE-ID/LIBRARY\""
},
I can find a file which name starts with KEY.
However, if I add the path where that file is located:
"query": {
"queryString": "\"KEY1*\" path:\"https://tenant.sharepoint.com/sites/SITE-ID/LIBRARY/PATH\""
},
The search returns nothing.
If I do the search with * as search string, I get only a fraction of the hits when using the path, although basically everything is located in that root level folder.