Class TermAggregate

java.lang.Object
org.nuxeo.ecm.platform.query.core.AggregateBase<B>
org.nuxeo.elasticsearch.aggregate.AggregateEsBase<org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,B>
org.nuxeo.elasticsearch.aggregate.MultiBucketAggregate<BucketTerm>
org.nuxeo.elasticsearch.aggregate.TermAggregate
All Implemented Interfaces:
Aggregate<BucketTerm>

public class TermAggregate extends MultiBucketAggregate<BucketTerm>
Since:
6.0
  • Constructor Details

  • Method Details

    • getEsAggregate

      public org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder getEsAggregate()
      Description copied from class: AggregateEsBase
      Return the Elasticsearch aggregate builder
      Specified by:
      getEsAggregate in class AggregateEsBase<org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,BucketTerm>
    • getEsFilter

      public org.opensearch.index.query.QueryBuilder getEsFilter()
      Description copied from class: AggregateEsBase
      Return the Elasticsearch aggregate filter corresponding to the selection
      Specified by:
      getEsFilter in class AggregateEsBase<org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,BucketTerm>
    • parseEsBuckets

      public void parseEsBuckets(Collection<? extends org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
      Description copied from class: MultiBucketAggregate
      Extract the buckets from the Elasticsearch response
      Specified by:
      parseEsBuckets in class MultiBucketAggregate<BucketTerm>