TermsAgg
fun <T> TermsAgg(field: FieldOperations<T>, size: Int? = null, shardSize: Int? = null, minDocCount: Int? = null, shardMinDocCount: Int? = null, include: BaseTermsAgg.Include? = null, exclude: BaseTermsAgg.Exclude? = null, missing: T? = null, order: List<BucketsOrder> = emptyList(), collectMode: BaseTermsAgg.CollectMode? = null, executionHint: BaseTermsAgg.ExecutionHint? = null, showTermDocCountError: Boolean? = null, params: Params = Params(), aggs: Map<String, Aggregation<*>> = emptyMap())
fun <T> TermsAgg(value: AggValue<T>, size: Int? = null, shardSize: Int? = null, minDocCount: Int? = null, shardMinDocCount: Int? = null, include: BaseTermsAgg.Include? = null, exclude: BaseTermsAgg.Exclude? = null, missing: T? = null, order: List<BucketsOrder> = emptyList(), collectMode: BaseTermsAgg.CollectMode? = null, executionHint: BaseTermsAgg.ExecutionHint? = null, showTermDocCountError: Boolean? = null, params: Params = Params(), aggs: Map<String, Aggregation<*>> = emptyMap())