FacetFilter
class FacetFilter<T, V>(field: <ERROR CLASS><V>, name: String?, mode: FacetFilterMode, termsAgg: <ERROR CLASS><T>) : Filter<PreparedFacetFilter<T>, FacetFilterResult<T>>
Content copied to clipboard
FacetFilter calculates counts for a field values and allows a search query to be filtered by those values.
Parameters
field
field where values are stored
name
optional filter name. If omitted, name of a property will be used
mode
mode to use when combining selected values. See FacetFilterMode
termsAgg
terms aggregation for the FacetFilter. Can be used to change aggregation arguments: TermsAgg.size, TermsAgg.minDocCount and others
Constructors
FacetFilter
Link copied to clipboard
fun <T, V> FacetFilter(field: <ERROR CLASS><V>, name: String? = null, mode: FacetFilterMode = FacetFilterMode.UNION, termsAgg: <ERROR CLASS><T>)
Content copied to clipboard
field where values are stored
Types
Functions
prepare
Link copied to clipboard
open override fun prepare(name: String, params: QueryFilterParams): PreparedFacetFilter<T>
Content copied to clipboard
provideDelegate
Link copied to clipboard
operator fun provideDelegate(thisRef: QueryFilters, property: KProperty<*>): <ERROR CLASS><QueryFilters, BoundFilter<C, R>>
Content copied to clipboard
Properties
mode
Link copied to clipboard
mode to use when combining selected values. See FacetFilterMode
termsAgg
Link copied to clipboard
terms aggregation for the FacetFilter. Can be used to change aggregation arguments: TermsAgg.size, TermsAgg.minDocCount and others