I'm having a hard time figuring out how the /me/drive/search
endpoint matches documents.
When I try /v1.0/me/drive/search(q='myQuery')
I receive documents with the name myQuery
back. This makes sense. What doesn't make sense is that if try /v1.0/me/drive/search(q='.')
I receive a giant list of results from across my organization. It appears that these documents are accessible to me, but when I try to search for one of them by name they don't come up.
Example
/v1.0/me/drive/search(q='.')
returns many documents, one of which is named "My Test Document"
/v1.0/me/drive/search(q='My Test Document')
returns no results.
One would expect that the 2nd query returns the same document as the first query.
In this example, you've requested Microsoft Graph to automatically include the children collection from the drive/root endpoint. The response will include all the default properties for the collection of files and folders within the root folder of the user's OneDrive.
Enable Data Connect in your Microsoft 365 tenantSelect the Microsoft Graph Data Connect service. Select the checkbox that says Turn Microsoft Graph Data Connect on or off for your entire organization... to enable the Data Connect service.
We've made a change that we believe should help for this specific query. Hopefully you'll get consistent results now!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With