Class SignificantTermsAggregation
Inherited Members
Namespace: OpenSearch .Client
Assembly: OpenSearch.Client.dll
Syntax
public class SignificantTermsAggregation : BucketAggregationBase, ISignificantTermsAggregation, IBucketAggregation, IAggregation
Constructors
| Edit this page View SourceSignificantTermsAggregation(string)
Declaration
public SignificantTermsAggregation(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Properties
| Edit this page View SourceBackgroundFilter
The default source of statistical information for background term frequencies is the entire index. This scope can be narrowed through the use of a background filter to focus in on significant terms within a narrower context
Declaration
public QueryContainer BackgroundFilter { get; set; }
Property Value
Type | Description |
---|---|
Query |
ChiSquare
Use chi square to calculate significance score
Declaration
public IChiSquareHeuristic ChiSquare { get; set; }
Property Value
Type | Description |
---|---|
IChi |
Exclude
Exclude term values for which buckets will be created.
Declaration
public IncludeExclude Exclude { get; set; }
Property Value
Type | Description |
---|---|
Include |
ExecutionHint
Determines the mechanism by which aggregations are executed
Declaration
public TermsAggregationExecutionHint? ExecutionHint { get; set; }
Property Value
Type | Description |
---|---|
Terms |
Field
The field on which to run the aggregation
Declaration
public Field Field { get; set; }
Property Value
Type | Description |
---|---|
Field |
GoogleNormalizedDistance
Use Google normalized distance to calculate significance score
Declaration
public IGoogleNormalizedDistanceHeuristic GoogleNormalizedDistance { get; set; }
Property Value
Type | Description |
---|---|
IGoogle |
Include
Include term values for which buckets will be created.
Declaration
public IncludeExclude Include { get; set; }
Property Value
Type | Description |
---|---|
Include |
MinimumDocumentCount
Return only terms that match equal to or more than a configurable number of hits
Declaration
public long? MinimumDocumentCount { get; set; }
Property Value
Type | Description |
---|---|
long? |
MutualInformation
Use mutual information to calculate significance score
Declaration
public IMutualInformationHeuristic MutualInformation { get; set; }
Property Value
Type | Description |
---|---|
IMutual |
PercentageScore
Use percentage to calculate significance score.
A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term. By default this produces a score greater than zero and less than one.
Declaration
public IPercentageScoreHeuristic PercentageScore { get; set; }
Property Value
Type | Description |
---|---|
IPercentage |
Script
Use a script to calculate a custom significance score.
Declaration
public IScriptedHeuristic Script { get; set; }
Property Value
Type | Description |
---|---|
IScripted |
ShardMinimumDocumentCount
Regulates the certainty a shard has if the term should actually be added to the candidate
list or not with respect to the Minimum
Declaration
public long? ShardMinimumDocumentCount { get; set; }
Property Value
Type | Description |
---|---|
long? |
ShardSize
Controls the number of candidate terms produced by each shard from which the Size of terms is selected.
Declaration
public int? ShardSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
Size
Defines how many term buckets should be returned out of the overall terms list
Declaration
public int? Size { get; set; }
Property Value
Type | Description |
---|---|
int? |