You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Microsoft Search API is not returning all the results when quering sharepoint list when using "from" property for the request. Even though the "total" in the response is more than "from". When I do the same request again, I see the results just fine.
Enter the request to search in the sharepoint list:
"{
"requests": [
{
"entityTypes": [
"listItem"
],
"query": {
"queryString": "claims path:"Put Link to the sharepoint list here""
},
Describe the bug
The Microsoft Search API is not returning all the results when quering sharepoint list when using "from" property for the request. Even though the "total" in the response is more than "from". When I do the same request again, I see the results just fine.
To Reproduce
Steps to reproduce the behavior:
Go to https://developer.microsoft.com/en-us/graph/graph-explorer
Put "https://graph.microsoft.com/v1.0/search/query" as an endpoint
Enter the request to search in the sharepoint list:
"{
"requests": [
{
"entityTypes": [
"listItem"
],
"query": {
"queryString": "claims path:"
Put Link to the sharepoint list here""},
}
]
}"
Click on "Run query"
See the results are:
"{
"value": [
{
"searchTerms": [
"claims"
],
"hitsContainers": [
{
"total": 75,
"moreResultsAvailable": true
}
]
}
],
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.searchResponse)"
}"
Sometimes it returns 2 or 3 items, but not all
If you Click on "Run query" again (for bigger number of items you need to run again multiple times for query starting from 300 I need to run 5 times)
The results are correct:
"{
"value": [
{
"searchTerms": [
"claims"
],
"hitsContainers": [
{
"hits": [
All results from 48 to 75],"total": 75,
"moreResultsAvailable": true
}
]
}
],
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.searchResponse)"
}"
Expected behavior
The results outlined in step 7 all the time
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: