public abstract class AggregateEsBase<B extends Bucket> extends AggregateBase<B>
Modifier and Type | Field and Description |
---|---|
static char |
ES_MUTLI_LEVEL_SEP |
static int |
MAX_AGG_SIZE |
static char |
XPATH_SEP |
bucketMap, buckets, definition, extendedBuckets, searchDocument, selection
Constructor and Description |
---|
AggregateEsBase(AggregateDefinition definition,
DocumentModel searchDocument) |
Modifier and Type | Method and Description |
---|---|
protected int |
getAggSize(String prop) |
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 static final int MAX_AGG_SIZE
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)
public String getField()
Aggregate
protected int getAggSize(String prop)
Copyright © 2018 Nuxeo. All rights reserved.