public class SignificantTermsAggregationBuilder extends ValuesSourceAggregationBuilder<ValuesSource,SignificantTermsAggregationBuilder>
ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>
AggregationBuilder.CommonFields
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
config
metaData
factoriesBuilder, name
EMPTY_PARAMS
Constructor and Description |
---|
SignificantTermsAggregationBuilder(StreamInput in)
Read from a Stream.
|
SignificantTermsAggregationBuilder(java.lang.String name,
ValueType valueType) |
Modifier and Type | Method and Description |
---|---|
QueryBuilder |
backgroundFilter() |
SignificantTermsAggregationBuilder |
backgroundFilter(QueryBuilder backgroundFilter) |
TermsAggregator.BucketCountThresholds |
bucketCountThresholds() |
SignificantTermsAggregationBuilder |
bucketCountThresholds(TermsAggregator.BucketCountThresholds bucketCountThresholds) |
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
java.lang.String |
executionHint()
Expert: gets an execution hint to the aggregation.
|
SignificantTermsAggregationBuilder |
executionHint(java.lang.String executionHint)
Expert: sets an execution hint to the aggregation.
|
protected TermsAggregator.BucketCountThresholds |
getBucketCountThresholds() |
static Aggregator.Parser |
getParser(ParseFieldRegistry<SignificanceHeuristicParser> significanceHeuristicParserRegistry) |
java.lang.String |
getType()
The name of the type of aggregation built by this builder.
|
IncludeExclude |
includeExclude()
Get terms to include and exclude from the aggregation results
|
SignificantTermsAggregationBuilder |
includeExclude(IncludeExclude includeExclude)
Set terms to include and exclude from the aggregation results
|
protected ValuesSourceAggregatorFactory<ValuesSource,?> |
innerBuild(SearchContext context,
ValuesSourceConfig<ValuesSource> config,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder) |
protected boolean |
innerEquals(java.lang.Object obj) |
protected int |
innerHashCode() |
protected void |
innerWriteTo(StreamOutput out)
Write subclass's state to the stream.
|
SignificantTermsAggregationBuilder |
minDocCount(long minDocCount)
Set the minimum document count terms should have in order to appear in
the response.
|
protected boolean |
serializeTargetValueType()
Should this builder serialize its targetValueType? Defaults to false.
|
SignificantTermsAggregationBuilder |
shardMinDocCount(long shardMinDocCount)
Set the minimum document count terms should have on the shard in order to
appear in the response.
|
SignificantTermsAggregationBuilder |
shardSize(int shardSize)
Sets the shard_size - indicating the number of term buckets each shard
will return to the coordinating node (the node that coordinates the
search execution).
|
SignificanceHeuristic |
significanceHeuristic() |
SignificantTermsAggregationBuilder |
significanceHeuristic(SignificanceHeuristic significanceHeuristic) |
SignificantTermsAggregationBuilder |
size(int size)
Sets the size - indicating how many term buckets should be returned
(defaults to 10)
|
doBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, internalXContent, missing, missing, resolveConfig, script, script, timeZone, timeZone, valueType, valueType
build, equals, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTo
getName
buildAsBytes, buildAsBytes, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public static final java.lang.String NAME
public SignificantTermsAggregationBuilder(java.lang.String name, ValueType valueType)
public SignificantTermsAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
public static Aggregator.Parser getParser(ParseFieldRegistry<SignificanceHeuristicParser> significanceHeuristicParserRegistry)
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
ValuesSourceAggregationBuilder
innerWriteTo
in class ValuesSourceAggregationBuilder<ValuesSource,SignificantTermsAggregationBuilder>
java.io.IOException
protected boolean serializeTargetValueType()
ValuesSourceAggregationBuilder
protected TermsAggregator.BucketCountThresholds getBucketCountThresholds()
public TermsAggregator.BucketCountThresholds bucketCountThresholds()
public SignificantTermsAggregationBuilder bucketCountThresholds(TermsAggregator.BucketCountThresholds bucketCountThresholds)
public SignificantTermsAggregationBuilder size(int size)
public SignificantTermsAggregationBuilder shardSize(int shardSize)
public SignificantTermsAggregationBuilder minDocCount(long minDocCount)
public SignificantTermsAggregationBuilder shardMinDocCount(long shardMinDocCount)
public SignificantTermsAggregationBuilder executionHint(java.lang.String executionHint)
public java.lang.String executionHint()
public SignificantTermsAggregationBuilder backgroundFilter(QueryBuilder backgroundFilter)
public QueryBuilder backgroundFilter()
public SignificantTermsAggregationBuilder includeExclude(IncludeExclude includeExclude)
public IncludeExclude includeExclude()
public SignificantTermsAggregationBuilder significanceHeuristic(SignificanceHeuristic significanceHeuristic)
public SignificanceHeuristic significanceHeuristic()
protected ValuesSourceAggregatorFactory<ValuesSource,?> innerBuild(SearchContext context, ValuesSourceConfig<ValuesSource> config, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
innerBuild
in class ValuesSourceAggregationBuilder<ValuesSource,SignificantTermsAggregationBuilder>
java.io.IOException
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ValuesSourceAggregationBuilder<ValuesSource,SignificantTermsAggregationBuilder>
java.io.IOException
protected int innerHashCode()
innerHashCode
in class ValuesSourceAggregationBuilder<ValuesSource,SignificantTermsAggregationBuilder>
protected boolean innerEquals(java.lang.Object obj)
innerEquals
in class ValuesSourceAggregationBuilder<ValuesSource,SignificantTermsAggregationBuilder>
public java.lang.String getType()
BaseAggregationBuilder