FacetFilterMode

enum FacetFilterMode : Enum<FacetFilterMode>

FacetFilterMode determines a way how values should be filtered:

  • UNION - 2 or more selected values are combined with OR operator. Most of the facet filters should use this mode. For example, you are buying car wheels of one of the sizes: R16 or R17. So after you choose corresponding values, a search query will be filtered with in following way: wheel_size == R16 || wheel_size == R17

  • INTERSECT - 2 or more selected values are combined using AND operator. Especially useful with multi-valued fields. For example, you want to buy a charger that supports AA, AAA and 18650 battery types. So when you choose all the required values, a generated search query should be filtered with battery_type == AA && battery_type == AAA && battery_type == 18650

Entries

INTERSECT
Link copied to clipboard
UNION
Link copied to clipboard

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int