Package | Description |
---|---|
sirius.db.es |
Modifier and Type | Method and Description |
---|---|
ElasticQuery<E> |
ElasticQuery.addAggregation(String name,
com.alibaba.fastjson.JSONObject aggregation)
Adds the given aggregation for the given name.
|
ElasticQuery<E> |
ElasticQuery.addDateAggregation(String name,
Mapping field,
List<DateRange> ranges)
Adds a date (bucket) aggregation.
|
ElasticQuery<E> |
ElasticQuery.addTermAggregation(Mapping field)
Adds a term (bucket) aggregation for the given field.
|
ElasticQuery<E> |
ElasticQuery.addTermAggregation(String name,
Mapping field,
int size)
Adds a term (bucket) aggregation for the given field.
|
ElasticQuery<E> |
ElasticQuery.collapse(Mapping field)
Collapses by the given field.
|
ElasticQuery<E> |
ElasticQuery.collapse(String field)
Collapses by the given field.
|
ElasticQuery<E> |
ElasticQuery.deliberatelyUnrouted()
Signals the the routing is deliberately skipped as no routing value is available.
|
ElasticQuery<E> |
ElasticQuery.filter(com.alibaba.fastjson.JSONObject filter)
Adds a FILTER constraint to the query.
|
ElasticQuery<E> |
ElasticQuery.must(ElasticConstraint filter)
Adds a MUST filter to the query.
|
ElasticQuery<E> |
ElasticQuery.must(com.alibaba.fastjson.JSONObject filter)
Adds a MUST filter to the query.
|
ElasticQuery<E> |
ElasticQuery.mustNot(ElasticConstraint filter)
Adds a MUST NOT filter to the query.
|
ElasticQuery<E> |
ElasticQuery.mustNot(com.alibaba.fastjson.JSONObject filter)
Adds a MUST NOT filter to the query.
|
ElasticQuery<E> |
ElasticQuery.orderAsc(Mapping field)
Adds an ascending sort by the given field to the query.
|
ElasticQuery<E> |
ElasticQuery.orderDesc(Mapping field)
Adds a descending sort by the given field to the query.
|
ElasticQuery<E> |
ElasticQuery.postFilter(ElasticConstraint filter)
Adds a post filter to the query.
|
ElasticQuery<E> |
ElasticQuery.postFilter(com.alibaba.fastjson.JSONObject filter)
Adds a post filterto the query.
|
ElasticQuery<E> |
ElasticQuery.routing(String value)
Specifies the routing value to use.
|
<E extends ElasticEntity> |
Elastic.select(Class<E> type) |
ElasticQuery<E> |
ElasticQuery.sort(com.alibaba.fastjson.JSONObject sortSpec)
Adds a sort statement to the query.
|
ElasticQuery<E> |
ElasticQuery.sort(Mapping field,
com.alibaba.fastjson.JSONObject sortSpec)
Adds a sort statement for the given field to the query.
|
ElasticQuery<E> |
ElasticQuery.where(ElasticConstraint constraint) |
ElasticQuery<E> |
ElasticQuery.years(int... years)
Specifies which years to query for entities which are
stored per year . |
ElasticQuery<E> |
ElasticQuery.yearsFromTo(int from,
int to)
Specifies a range of years to query for entities which are
stored per year . |
Copyright © 2018. All rights reserved.