Microsoft Graph Search API
A Microsoft API that searches for information in email messages, returns messages ranked by relevance, and renders a dedicated search experience.
164 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Support,
I wish to use a way to limit my search to some specific sites.
Any help would be apprecicated!
Thanks
Hi @Olivia-2575
Hope you are doing well.
You can use filters in your search query. Please follow this documentation to know more.
Here's the sample request-
POST /search/query
{
"requests": [
{
"entityTypes": [
"driveItem"
],
"query": {
"queryString": "sample AND (Path:https://xyz.sharepoint.com/sites/sitename1 OR Path:https://xyz.sharepoint.com/sites/sitename2)"
}
}
]
}
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".