Skip to main content

About this widget

A view with helpers that displays a paginated list of search results. It uses Android Architecture Components’ Paging library and LiveData to provide lifecycle-aware, observable search results that can be loaded as users scroll. To add infinite hits to your search experience, add the following to your build.gradle file:
Use these components:
  • Searcher to handle your searches.
  • Paginator. A pagination utility that will load hits incrementally.
  • PagingConfig to configure loading behavior.
  • T. A data class representing a search result.
  • FilterState so that the paginated list refreshes when a changes.
As an alternative to this approach, the infinite scroll guide describes how to create an automatically scrolling infinite hits experience. See also: Searches without results

Explore example code

Browse the Infinite Hits (Paging) example code on GitHub.

Examples

Kotlin

Compose UI

InstantSearch provides the Paginator, which exposes a flow property for paging data and an invalidate() method to stop loading. You must also connect Paginator to other components, such as SearchBoxConnector, FilterState, or FacetListConnector.
Kotlin
Last modified on July 10, 2026