WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Significant Terms aggregation
editSignificant Terms aggregation
editAn aggregation that returns interesting or unusual occurrences of terms in a set.
Fluent DSL
editvar result = client.Search<ElasticsearchProject>(s => s .Aggregations(a => a .SignificantTerms("my_sig_terms_agg", sa => sa .Field(p => p.Content) ) ) ); var agg = result.Aggs.SignificantTerms("my_sig_terms_agg");
Object Initializer Syntax
editvar request = new SearchRequest { Aggregations = new Dictionary<string, IAggregationContainer> { { "my_sig_terms_agg", new AggregationContainer { SignificantTerms = new SignificantTermsAggregator { Field = "content" } } } } }; var result = client.Search<ElasticsearchProject>(request); var agg = result.Aggs.SignificantTerms("my_sig_terms_agg");
Refer to the original docs for more information.