S - The "self" type (the actual exposed type of this step).PDF - The type of factory used to create predicates in AggregationFilterStep.filter(Function).F - The type of the targeted field.A - The type of result for this aggregation.public interface TermsAggregationOptionsStep<S extends TermsAggregationOptionsStep<?,PDF,F,A>,PDF extends SearchPredicateFactory,F,A> extends AggregationFinalStep<A>, AggregationFilterStep<S,PDF>
| Modifier and Type | Method and Description |
|---|---|
S |
maxTermCount(int maxTermCount)
Requires to only create buckets for the top
maxTermCount most frequent terms. |
S |
minDocumentCount(int minDocumentCount)
Eliminates buckets with less than
minDocumentCount matching documents
from the aggregation result. |
S |
orderByCountAscending()
Order buckets by ascending document count in the aggregation result.
|
S |
orderByCountDescending()
Order buckets by descending document count in the aggregation result.
|
S |
orderByTermAscending()
Order buckets by ascending term value in the aggregation result.
|
S |
orderByTermDescending()
Order buckets by descending term value in the aggregation result.
|
toAggregationfilter, filter, filterS orderByCountDescending()
This is the default behavior.
this, for method chaining.S orderByCountAscending()
this, for method chaining.S orderByTermAscending()
this, for method chaining.S orderByTermDescending()
this, for method chaining.S minDocumentCount(int minDocumentCount)
minDocumentCount matching documents
from the aggregation result.
If set to 0, terms that are present in the index,
but are not referenced in any document matched by the search query
will yield a bucket with a document count of zero.
Defaults to 1.
minDocumentCount - The minimum document count for each aggregation value.this, for method chaining.S maxTermCount(int maxTermCount)
maxTermCount most frequent terms.
Defaults to 100.
maxTermCount - The maximum number of reported terms.this, for method chaining.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.