We are a building a custom web part with pagination feature. To implement feature we are getting Total rows count and showing possible number of pages.
While implementing we are running queries using startRow and rowLimit query string parameters. When I change the startRow TotalRows attribute returning different number for the same queryText.
https://tenant.sharepoint.com/_api/search/query?querytext='test'&startrow=0&rowLimit=10 returns TotalRows 125
https://tenant.sharepoint.com/_api/search/query?querytext='test'&startrow=10&rowLimit=10 returns TotalRows 112
But TotalRowsInclusingDuplicates property returns consistent value. However, If I try to use start row above the TotalRows count then getting 0 results.
I am wondering why Rows Count is varies by StartRow.
Is anyone facing same issue or any suggestions is very much appreciated.