FacetRangeFilter

fun <T> FacetRangeFilter(field: FieldOperations<T>, name: String? = null, aggs: Map<String, Aggregation<*>> = emptyMap())

Parameters

field
  • field to filter a search query with

name
  • optional filter name. If omitted, name of a property will be used

aggs
  • mapping with aggregations. Can be used to calculate aggregation for a FacetRangeFilter.field. For example, minimum and maximum values or a histogram can be calculated.