Package | Description |
---|---|
org.springframework.data.elasticsearch.core.query |
Modifier and Type | Method and Description |
---|---|
static Criteria |
Criteria.and() |
Criteria |
Criteria.and(Criteria... criterias)
Chain an array of Criteria to this object.
|
Criteria |
Criteria.and(Criteria criteria)
Chain a Criteria to this object.
|
Criteria |
Criteria.and(Field field)
Chain a new and-Criteria
|
Criteria |
Criteria.and(String fieldName)
Chain a new and- Criteria
|
Criteria |
Criteria.between(Object lowerBound,
Object upperBound)
Adds a OperationKey.BETWEEN entry to the
queryCriteriaEntries . |
Criteria |
Criteria.boost(float boost)
Sets the boost factor.
|
Criteria |
Criteria.boundedBy(Box boundingBox)
Adds a new filter CriteriaEntry for
location Box bounding box |
Criteria |
Criteria.boundedBy(GeoBox boundingBox)
Adds a new filter CriteriaEntry for
location GeoBox bounding box |
Criteria |
Criteria.boundedBy(GeoPoint topLeftPoint,
GeoPoint bottomRightPoint)
Adds a new filter CriteriaEntry for bounding box created from points
|
Criteria |
Criteria.boundedBy(Point topLeftPoint,
Point bottomRightPoint)
Adds a new filter CriteriaEntry for bounding box created from points
|
Criteria |
Criteria.boundedBy(String topLeftGeohash,
String bottomRightGeohash)
Adds a new filter CriteriaEntry for bounding box created from points
|
Criteria |
Criteria.contains(GeoJson<?> geoShape)
Adds a new filter CriteriaEntry for GEO_CONTAINS.
|
Criteria |
Criteria.contains(String s)
Add a
Criteria.OperationKey.CONTAINS entry to the queryCriteriaEntries NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow. |
Criteria |
Criteria.endsWith(String s)
Add a
Criteria.OperationKey.ENDS_WITH entry to the queryCriteriaEntries NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow. |
Criteria |
Criteria.exists()
Add a
Criteria.OperationKey.EXISTS entry to the queryCriteriaEntries |
Criteria |
Criteria.expression(String s)
Add a
Criteria.OperationKey.EXPRESSION entry to the queryCriteriaEntries allowing native elasticsearch
expressions |
Criteria |
Criteria.fuzzy(String s)
Add a
Criteria.OperationKey.FUZZY entry to the queryCriteriaEntries |
Criteria |
CriteriaQuery.getCriteria() |
Criteria |
Criteria.greaterThan(Object lowerBound)
Add a
Criteria.OperationKey.GREATER entry to the queryCriteriaEntries |
Criteria |
Criteria.greaterThanEqual(Object lowerBound)
Add a
Criteria.OperationKey.GREATER_EQUAL entry to the queryCriteriaEntries |
Criteria |
Criteria.in(Iterable<?> values)
Add a
Criteria.OperationKey.IN entry to the queryCriteriaEntries . |
Criteria |
Criteria.in(Object... values)
Add a
Criteria.OperationKey.IN entry to the queryCriteriaEntries . |
Criteria |
Criteria.intersects(GeoJson<?> geoShape)
Adds a new filter CriteriaEntry for GEO_INTERSECTS.
|
Criteria |
Criteria.is(Object o)
Add a
Criteria.OperationKey.EQUALS entry to the queryCriteriaEntries |
Criteria |
Criteria.isDisjoint(GeoJson<?> geoShape)
Adds a new filter CriteriaEntry for GEO_IS_DISJOINT.
|
Criteria |
Criteria.lessThan(Object upperBound)
Add a
Criteria.OperationKey.LESS entry to the queryCriteriaEntries |
Criteria |
Criteria.lessThanEqual(Object upperBound)
Add a
Criteria.OperationKey.LESS_EQUAL entry to the queryCriteriaEntries |
Criteria |
Criteria.matches(Object value)
Add a
Criteria.OperationKey.MATCHES entry to the queryCriteriaEntries . |
Criteria |
Criteria.matchesAll(Object value)
Add a
Criteria.OperationKey.MATCHES entry to the queryCriteriaEntries . |
Criteria |
Criteria.not()
Sets the negating flag
|
Criteria |
Criteria.notIn(Iterable<?> values)
Add a
Criteria.OperationKey.NOT_IN entry to the queryCriteriaEntries . |
Criteria |
Criteria.notIn(Object... values)
Add a
Criteria.OperationKey.NOT_IN entry to the queryCriteriaEntries . |
static Criteria |
Criteria.or() |
Criteria |
Criteria.or(Criteria criteria)
Chain a new or-Criteria.
|
Criteria |
Criteria.or(Field field)
Chain a new or-Criteria
|
Criteria |
Criteria.or(String fieldName)
Chain a new or-Criteria
|
Criteria |
Criteria.startsWith(String s)
Add a
Criteria.OperationKey.STARTS_WITH entry to the queryCriteriaEntries |
Criteria |
Criteria.subCriteria(Criteria criteria)
adds a Criteria as subCriteria
|
static Criteria |
Criteria.where(Field field)
Static factory method to create a new Criteria for provided field
|
static Criteria |
Criteria.where(String fieldName)
Static factory method to create a new Criteria for field with given name
|
Criteria |
Criteria.within(GeoJson<?> geoShape)
Adds a new filter CriteriaEntry for GEO_WITHIN.
|
Criteria |
Criteria.within(GeoPoint location,
String distance)
Adds a new filter CriteriaEntry for
location WITHIN distance |
Criteria |
Criteria.within(Point location,
Distance distance)
Adds a new filter CriteriaEntry for
location WITHIN distance |
Criteria |
Criteria.within(String geoLocation,
String distance)
Adds a new filter CriteriaEntry for
geoLocation WITHIN distance |
Modifier and Type | Method and Description |
---|---|
List<Criteria> |
Criteria.getCriteriaChain() |
Set<Criteria> |
Criteria.getSubCriteria() |
Modifier and Type | Method and Description |
---|---|
<T extends CriteriaQuery> |
CriteriaQuery.addCriteria(Criteria criteria) |
Criteria |
Criteria.and(Criteria... criterias)
Chain an array of Criteria to this object.
|
Criteria |
Criteria.and(Criteria criteria)
Chain a Criteria to this object.
|
Criteria |
Criteria.or(Criteria criteria)
Chain a new or-Criteria.
|
Criteria |
Criteria.subCriteria(Criteria criteria)
adds a Criteria as subCriteria
|
Constructor and Description |
---|
CriteriaQuery(Criteria criteria) |
CriteriaQuery(Criteria criteria,
Pageable pageable) |
Constructor and Description |
---|
Criteria(List<Criteria> criteriaChain,
Field field)
Creates a Criteria for the given field, sets it's criteriaChain to the given value and adds itself to the end of
the chain.
|
Criteria(List<Criteria> criteriaChain,
String fieldName)
Creates a Criteria for the given field, sets it's criteriaChain to the given value and adds itself to the end of
the chain.
|
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.