Infinite scroll with InstantSearch Android
On this page
A typical method for browsing results on mobile devices is an “infinite scroll”, which loads results as the user scrolls through the list. With InstantSearch this is as easy as using the
If there are no hits, you should display a message to users and clear filters so they can start over.
Show more than 1,000 hits
To ensure excellent performance, the default limit for the number of hits you can retrieve for a query is 1,000.
1 2 3 $index->setSettings([ 'paginationLimitedTo' => 1000 ]);
Increasing the limit doesn’t mean you can go until the end of the hits, but just that Algolia will go as far as possible in the index to retrieve results in a reasonable time.