I'm using a rest call to get results from SharePoint but at some point when going through pagination results, the total count change sometimes lower, sometimes higher, I'm doing the same call each time but only increasing or decreasing the start row value.
Here is the search request: http://mysharepoint:27180/sites/portal/_api/search/query?queryText='ClientSiteType%3AClientPortal*%20contentclass%3ASTS_Site%20Rg%3DAeia'&sourceid='8413cd39-2156-4e00-b54d-11efd9abdb89'&selectproperties='ClientName, SiteTitle, Client, Path'&rowlimit=10&startrow=0&TrimDuplicatesOnProperty='ClientName'&enableSorting=true&sortlist='ClientName:ascending'
I got 22 pages in this case.
When at page 1 to 17 I see 220 as total
Next page, still 220
But when in page 19, this value change to 219.
If I check the xml for the mentioned requests I see the same value.
For other pages:
Could you please let me know if you see anything wrong in my request? For some scenarios I got correct results and the value is not changing but for some other I see issues like this one.
Carlos M