public abstract class AggregateEsBase<B extends Bucket> extends AggregateBase<B>
Modifier and Type | Field and Description |
---|---|
static char |
ES_MUTLI_LEVEL_SEP |
static char |
XPATH_SEP |
bucketMap, buckets, definition, extendedBuckets, searchDocument, selection
Constructor and Description |
---|
AggregateEsBase(AggregateDefinition definition,
DocumentModel searchDocument) |
Modifier and Type | Method and Description |
---|---|
abstract org.elasticsearch.search.aggregations.AggregationBuilder |
getEsAggregate()
Return the Elasticsearch aggregate builder
|
abstract org.elasticsearch.index.query.QueryBuilder |
getEsFilter()
Return the Elasticsearch aggregate filter corresponding to the selection
|
String |
getField()
Nuxeo field to aggregate.
|
abstract void |
parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
Extract the buckets from the Elasticsearch response
|
getBucket, getBucketMap, getBuckets, getDateRanges, getExtendedBuckets, getId, getProperties, getRanges, getSearchDocument, getSelection, getType, hasBucket, resetSelection, setBuckets, setSelection, toString
public static final char XPATH_SEP
public static final char ES_MUTLI_LEVEL_SEP
public AggregateEsBase(AggregateDefinition definition, DocumentModel searchDocument)
public abstract org.elasticsearch.search.aggregations.AggregationBuilder getEsAggregate()
public abstract org.elasticsearch.index.query.QueryBuilder getEsFilter()
public abstract void parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
Copyright © 2016 Nuxeo SA. All rights reserved.