In virtual replica indices, the nbPages value is calculated using nbSortedHits instead of nbHits, which can make the page count appear inaccurate.
Virtual replicas apply custom ranking rules that affect how results are sorted and limited. Because of this, Algolia bases pagination on the number of sorted hits (nbSortedHits) rather than the total number of matching records (nbHits).
As a result, nbPages reflects only the records eligible after sorting and ranking are applied, not all matching records in the index. This behavior is expected and specific to virtual replica indices.