About this widget
AFilterState
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
FilterGroupID
.
A FilterGroupID
must have:
- A name
- A
FilterOperator
, which can either beFilterOperator.And
orFilterOperator.Or
FilterOperator
indicates which type of boolean operator should be applied between each filter in the group.
See also:
Examples
Add and remove filters from aFilterState
.
Kotlin
Kotlin
FilterState
to an SQL-like string expression
which can be used with a Query.
Kotlin