java.io.Closeable
, java.lang.AutoCloseable
, Releasable
public 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, name
public 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.IOException
public long getSupersetNumDocs()
public long getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes) throws java.io.IOException
java.io.IOException
public void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in interface Releasable
protected 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