Class SignificantTextAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.bucket.significant.SignificantTextAggregatorFactory
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Releasable
public class SignificantTextAggregatorFactory extends AggregatorFactory implements Releasable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
AggregatorFactory.MultiBucketAggregatorWrapper -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
factories, metaData, name, parent, queryShardContext -
Constructor Summary
Constructors Constructor Description SignificantTextAggregatorFactory(java.lang.String name, IncludeExclude includeExclude, QueryBuilder filterBuilder, TermsAggregator.BucketCountThresholds bucketCountThresholds, SignificanceHeuristic significanceHeuristic, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, java.lang.String fieldName, java.lang.String[] sourceFieldNames, boolean filterDuplicateText, java.util.Map<java.lang.String,java.lang.Object> metaData) -
Method Summary
Modifier and Type Method Description voidclose()protected AggregatorcreateInternal(SearchContext searchContext, Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)longgetBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes)longgetSupersetNumDocs()Get the number of docs in the superset.Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
asMultiBucketAggregator, create, doValidate, getParent, name
-
Constructor Details
-
SignificantTextAggregatorFactory
public SignificantTextAggregatorFactory(java.lang.String name, IncludeExclude includeExclude, QueryBuilder filterBuilder, TermsAggregator.BucketCountThresholds bucketCountThresholds, SignificanceHeuristic significanceHeuristic, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, java.lang.String fieldName, java.lang.String[] sourceFieldNames, boolean filterDuplicateText, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
getSupersetNumDocs
public long getSupersetNumDocs()Get the number of docs in the superset. -
getBackgroundFrequency
public long getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes) throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceReleasable
-
createInternal
protected Aggregator createInternal(SearchContext searchContext, Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException- Specified by:
createInternalin classAggregatorFactory- Throws:
java.io.IOException
-