FacetFilterValue

data class FacetFilterValue<T>(val bucket: TermBucket<T>, val selected: Boolean) : AggAwareResult

FacetFilterValue represents bucket of the corresponding terms aggregation.

Parameters

bucket
  • corresponding aggregation bucket

selected
  • flag whether the value is selected

Constructors

Link copied to clipboard
fun <T> FacetFilterValue(bucket: TermBucket<T>, selected: Boolean)

Functions

Link copied to clipboard
inline fun <A : AggregationResult> agg(name: String): A
Link copied to clipboard
inline fun <A : AggregationResult> aggIfExists(name: String): A?

Properties

Link copied to clipboard
open override val aggs: Map<String, AggregationResult>
Link copied to clipboard
Link copied to clipboard
val count: Long

Number of the documents that have such a value

Link copied to clipboard
Link copied to clipboard
val value: T

Value of the FacetFilter

Extensions

Link copied to clipboard
Link copied to clipboard