Hope you're doing well.
I've tested this scenario at my end and based on my understanding, this API works as per design. You can use from & size property in request body to control pagination of your Search results.
Here's below sample request, -
POST https://graph.microsoft.com/v1.0/search/query
{
"requests": [
{
"entityTypes": [
"driveItem"
],
"query": {
"queryString": "docx"
},
"from": 0,
"size": 5
}
]
}
The above request will list only 5 results (as size=5).
Please note that size is different for different resources. Refer this documentation.
You can modify from & size to change set of results (as per new range).
{
"requests": [
{
"entityTypes": [
"driveItem"
],
"query": {
"queryString": "docx"
},
"from": 10,
"size": 30
}
]
}
The above request will fetch the results in between given range (i.e., 10 - 30).
You can always check moreResultsAvailable property in response. If moreResultsAvailable is true, then there are more results that you can query.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.