Skip to main content

About this widget

A FilterState is a class that holds one or several filters, organized in groups. The FilterState can be modified at any moment by adding or removing filters, which will be applied to searches performed by the connected Searcher. You can use three filter types:
  • Filter.Facet
  • Filter.Numeric
  • Filter.Tag
A group of filters must be identified by a FilterGroupID. A FilterGroupID must have:
  • A name
  • A FilterOperator, which can either be FilterOperator.And or FilterOperator.Or
A FilterOperator indicates which type of boolean operator should be applied between each filter in the group. See also:

Explore example code

Browse the FilterState example code on GitHub.

Examples

Add and remove filters from a FilterState.
Kotlin
Notify and listen to changes.
Kotlin
Convert a FilterState to an SQL-like string expression which can be used with search parameters.
Kotlin
Last modified on July 10, 2026