I'm doing search in drive and folder hierarchy in the graph explorer logged in as myself and having granted consent and nothing is being returned.
On this page: https://learn.microsoft.com/en-us/graph/api/driveitem-search?view=graph-rest-1.0
It says: "Search the hierarchy of items for items matching a query. You can search within a folder hierarchy, a whole drive, or files shared with the current user."
When I do search based on what the user can access documented in this section "Searching for items a user can access" then I get results. But if I specify the root or some other folder then the search returns nothing, i.e. this works:
/me/drive/search(q='{search-query}')
but these return nothing even though I'm searching within my drive and have items in my drive owned by me that meet the search criteria:
/me/drive/root/search(q='{search-text}')
/drives/{drive-id}/root/search(q='{search-text}')
/drives/{drive-id}/items/{folder-id}/search(q='{search-text}')
Does anyone have any insight into this problem? When I get the results from the search on what I can see, the results clearly show that the results are from my drive. And as I mentioned those items are owned by me.
Update: strange but testing again today, the root and folder search seem to be working now. We're going t continue to monitor the results.
Regards, LT