invoke

operator fun <T> invoke(field: <ERROR CLASS><T>, name: String? = null, mode: FacetFilterMode = FacetFilterMode.UNION): FacetFilter<T, T>

A shortcut to create a FacetFilter without a custom terms aggregation.

operator fun <T> invoke(field: <ERROR CLASS><T>, name: String? = null, mode: FacetFilterMode = FacetFilterMode.UNION, termsAggFactory: (<ERROR CLASS><T>) -> <ERROR CLASS><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