Feb 19 2019 05:22 AM
I want to develop an application that displays a search result. For testing I uploaded a couple of files to the default document library in the root site. I can see these files with the following request:
https://graph.microsoft.com/v1.0/sites/root/drive/root/search(q='Test')
However, one of the requirements is that the query should match files regardless of in which site they are stored. As I understand the documentation I should use something like this:
https://graph.microsoft.com/v1.0/me/drive/search(q='Test')
The query is the same as in the first example but the results are empty.
{ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(driveItem)", "value": [] }
Feb 19 2019 08:22 AM
SolutionIt sounds to me like what you're looking for isn't the Graph API, but the Search API.
Feb 19 2019 08:22 AM
SolutionIt sounds to me like what you're looking for isn't the Graph API, but the Search API.