Class AggregateEsBase<A extends org.opensearch.search.aggregations.Aggregation,B extends Bucket>
java.lang.Object
org.nuxeo.ecm.platform.query.core.AggregateBase<B>
org.nuxeo.elasticsearch.aggregate.AggregateEsBase<A,B>
- All Implemented Interfaces:
Aggregate<B>
- Direct Known Subclasses:
MultiBucketAggregate,NativeEsAggregate,SingleBucketAggregate,SingleValueMetricAggregate
public abstract class AggregateEsBase<A extends org.opensearch.search.aggregations.Aggregation,B extends Bucket>
extends AggregateBase<B>
- Since:
- 6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final intstatic final charFields inherited from class org.nuxeo.ecm.platform.query.core.AggregateBase
bucketMap, buckets, definition, extendedBuckets, searchDocument, selection -
Constructor Summary
ConstructorsConstructorDescriptionAggregateEsBase(AggregateDefinition definition, DocumentModel searchDocument) -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetAggSize(String prop) abstract org.opensearch.search.aggregations.AggregationBuilderReturn the Elasticsearch aggregate builderabstract org.opensearch.index.query.QueryBuilderReturn the Elasticsearch aggregate filter corresponding to the selectiongetField()Nuxeo field to aggregate.Gets the field name as defined in Nuxeo.abstract voidparseAggregation(A aggregation) Extract the aggregation from the Elasticsearch responseMethods inherited from class org.nuxeo.ecm.platform.query.core.AggregateBase
getBucket, getBucketMap, getBuckets, getDateRanges, getExtendedBuckets, getId, getProperties, getRanges, getSearchDocument, getSelection, getType, hasBucket, resetSelection, setBuckets, setSelection, toString
-
Field Details
-
XPATH_SEP
public static final char XPATH_SEP- See Also:
-
ES_MUTLI_LEVEL_SEP
public static final char ES_MUTLI_LEVEL_SEP- See Also:
-
MAX_AGG_SIZE
public static final int MAX_AGG_SIZE- See Also:
-
-
Constructor Details
-
AggregateEsBase
-
-
Method Details
-
getEsAggregate
public abstract org.opensearch.search.aggregations.AggregationBuilder getEsAggregate()Return the Elasticsearch aggregate builder -
getEsFilter
public abstract org.opensearch.index.query.QueryBuilder getEsFilter()Return the Elasticsearch aggregate filter corresponding to the selection -
parseAggregation
Extract the aggregation from the Elasticsearch response- Since:
- 10.3
-
getField
Description copied from interface:AggregateNuxeo field to aggregate. -
getAggSize
-
getXPathField
Description copied from interface:AggregateGets the field name as defined in Nuxeo.In Nuxeo the separator for a complex type is the `/` character, in a case where our
Aggregateimplementation defines a field as `file:content.mime-type`, this method should return `file:content/mime-type`.- Specified by:
getXPathFieldin interfaceAggregate<A extends org.opensearch.search.aggregations.Aggregation>- Overrides:
getXPathFieldin classAggregateBase<B extends Bucket>
-