Continuing the investigation into SharePoint Online Search not returning all results
We found that SharePoint search API has the "remove duplicates" flag turned on by default.
At first we didn't pay much attention to it, since the results we were missing were not duplicates...
However, after digging some more into it, it seems SharePoint Search was not only removing identical duplicates (meaning, the same item returned twice) but also similar duplicates - meaning items it deems are too similar to one another.
It is on by default, so you should turn it off on every request. It seems to have helped with our issues, we haven't been able to replicate this issue since we turned that off.
In query string, add:
?trimduplicates=false
In post, add:
{
'__metadata':{'type':'Microsoft.Office.Server.Search.REST.SearchRequest'},
'Querytext':'sharepoint',
'TrimDuplicates'='False'
}
Read more
The strange thing about it was - why did "Reindex List" button help in some cases? Perhaps there were two issues, we can not be sure.
Hope this helps!
No comments:
Post a Comment