Skip to main content
Signature

Explore example code

Browse the FilterList (Facet) example code on GitHub.

About this widget

FilterList.Facet is a filtering view that displays any kind of facet filters and lets users refine their search results by selecting them. Compared to the RefinementList, which takes its values from the search response facets, this widget displays facet filters that you add yourself.

Examples

Kotlin

Low-level API

If you want to fully control the FilterList.Facet components and connect them manually, use the following components:
  • Searcher: The Searcher that handles your searches.
  • FilterState: The current state of the filters.
  • FilterListViewModel.Facet: The logic applied to the facet filters.
  • FilterListView.Facet: The view that renders the facet filters.
  • FilterPresenter: Optional. The presenter to customize the display of the filters.
Kotlin

Compose UI

InstantSearch provides the FilterListState as a state model, which is an implementation of the FilterListView interface. You need to connect FilterListState to the FilterListConnector or FilterListViewModel like any other FilterListView implementation.
Kotlin

Parameters

filters
List<Filter.Facet>
required
default: listOf()
The facet filters to display.
filterState
FilterState
required
The FilterState that will hold your filters.
selectionMode
SelectionMode
default: Multiple
Whether the list can have Single or Multiple selections.
groupID
FilterGroupID
default: FilterGroupID(FilterOperator.Or)
The identifier for the group of filters.

View

view
FilterListView.Facet
The view that renders the filters.
Kotlin
Last modified on July 10, 2026