Hi @Hardik Purohit ,
Welcome to Q&A forum!
We conducted a test based on the information you provided. The test results are as follows:
- The results of
https://graph.microsoft.com/beta/search/query
for.png, .jpg
, and.gif
are not very stable. Some can be searched, but some cannot. For this situation, there is currently no official explanation on this issue. It is needed to check the backend API call. - The results of
https://graph.microsoft.com/v1.0/search/query
for.png, .jpg
, and.gif
can all be searched. Therefore, we recommend that you usehttps://graph.microsoft.com/v1.0/search/query
.
POST https://graph.microsoft.com/v1.0/search/query
{
"requests": [
{
"entityTypes": ["driveItem"],
"query": { "queryString": "searchstring AND Path:https://contoso.sharepoint.com/sites/Sitename/libraryname
}
}
]
}
Hope this can help.
Good day!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.