java.io.Closeable, java.lang.AutoCloseable, Releasablepublic class SignificantTextAggregatorFactory extends AggregatorFactory<SignificantTextAggregatorFactory> implements Releasable
AggregatorFactory.MultiBucketAggregatorWrapper| Constructor | Description |
|---|---|
SignificantTextAggregatorFactory(java.lang.String name,
IncludeExclude includeExclude,
QueryBuilder filterBuilder,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
SignificanceHeuristic significanceHeuristic,
SearchContext context,
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) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
protected Aggregator |
createInternal(Aggregator parent,
boolean collectsFromSingleBucket,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
|
long |
getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes) |
|
long |
getSupersetNumDocs() |
Get the number of docs in the superset.
|
asMultiBucketAggregator, create, doValidate, getParent, namepublic SignificantTextAggregatorFactory(java.lang.String name,
IncludeExclude includeExclude,
QueryBuilder filterBuilder,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
SignificanceHeuristic significanceHeuristic,
SearchContext context,
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
java.io.IOExceptionpublic long getSupersetNumDocs()
public long getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes)
throws java.io.IOException
java.io.IOExceptionpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in interface Releasableprotected Aggregator createInternal(Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
createInternal in class AggregatorFactory<SignificantTextAggregatorFactory>java.io.IOException