FilterMode

FilterMode determines a way how values should be filtered.

Entries

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard
fun <T> filterByValues(field: FieldOperations<T>, filterValues: List<T & Any>): QueryExpression?
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard