invoke
operator fun <T> invoke(field: FieldOperations<T>, name: String? = null, mode: FilterMode = FilterMode.UNION): FacetFilter<T, T>
A shortcut to create a FacetFilter without a custom terms aggregation.
operator fun <T> invoke(field: FieldOperations<T>, name: String? = null, mode: FilterMode = FilterMode.UNION, termsAggFactory: (FieldOperations<T>) -> TermsAgg<T>): FacetFilter<T, T>
A shortcut to create a FacetFilter with a custom terms aggregation using a lambda which accepts filter's FacetFilter.field and returns the aggregation.
Parameters
termsAggFactory
factory that creates terms aggregation for a FacetFilter.field