Uses of Class
org.springframework.data.elasticsearch.core.query.Criteria
-
Uses of Criteria in org.springframework.data.elasticsearch.core.query
Modifier and TypeMethodDescriptionstatic Criteria
Criteria.and()
Chain a new and- CriteriaChain a Criteria to this object.Chain an array of Criteria to this object.Chain a new and-CriteriaAdds a OperationKey.BETWEEN entry to thequeryCriteriaEntries
.Criteria.boost
(float boost) Sets the boost factor.Adds a new filter CriteriaEntry for bounding box created from pointsAdds a new filter CriteriaEntry forlocation GeoBox bounding box
Adds a new filter CriteriaEntry for bounding box created from pointsAdds a new filter CriteriaEntry forlocation Box bounding box
Adds a new filter CriteriaEntry for bounding box created from pointsAdd aCriteria.OperationKey.CONTAINS
entry to thequeryCriteriaEntries
NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow.Adds a new filter CriteriaEntry for GEO_CONTAINS.Criteria.empty()
Add aCriteria.OperationKey.EMPTY
entry to thequeryCriteriaEntries
.Add aCriteria.OperationKey.ENDS_WITH
entry to thequeryCriteriaEntries
NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow.Criteria.exists()
Add aCriteria.OperationKey.EXISTS
entry to thequeryCriteriaEntries
Criteria.expression
(String s) Add aCriteria.OperationKey.EXPRESSION
entry to thequeryCriteriaEntries
allowing native elasticsearch expressionsAdd aCriteria.OperationKey.FUZZY
entry to thequeryCriteriaEntries
CriteriaQuery.getCriteria()
CriteriaQueryBuilder.getCriteria()
Criteria.greaterThan
(Object lowerBound) Add aCriteria.OperationKey.GREATER
entry to thequeryCriteriaEntries
Criteria.greaterThanEqual
(Object lowerBound) Add aCriteria.OperationKey.GREATER_EQUAL
entry to thequeryCriteriaEntries
Add aCriteria.OperationKey.IN
entry to thequeryCriteriaEntries
.Add aCriteria.OperationKey.IN
entry to thequeryCriteriaEntries
.Criteria.intersects
(GeoJson<?> geoShape) Adds a new filter CriteriaEntry for GEO_INTERSECTS.Add aCriteria.OperationKey.EQUALS
entry to thequeryCriteriaEntries
Criteria.isDisjoint
(GeoJson<?> geoShape) Adds a new filter CriteriaEntry for GEO_IS_DISJOINT.Add aCriteria.OperationKey.LESS
entry to thequeryCriteriaEntries
Criteria.lessThanEqual
(Object upperBound) Add aCriteria.OperationKey.LESS_EQUAL
entry to thequeryCriteriaEntries
Add aCriteria.OperationKey.MATCHES
entry to thequeryCriteriaEntries
.Criteria.matchesAll
(Object value) Add aCriteria.OperationKey.MATCHES
entry to thequeryCriteriaEntries
.Criteria.not()
Sets the negating flagCriteria.notEmpty()
Add aCriteria.OperationKey.NOT_EMPTY
entry to thequeryCriteriaEntries
.Add aCriteria.OperationKey.NOT_IN
entry to thequeryCriteriaEntries
.Add aCriteria.OperationKey.NOT_IN
entry to thequeryCriteriaEntries
.static Criteria
Criteria.or()
Chain a new or-CriteriaChain a new or-Criteria.Chain a new or-CriteriaCriteria.startsWith
(String s) Add aCriteria.OperationKey.STARTS_WITH
entry to thequeryCriteriaEntries
Criteria.subCriteria
(Criteria criteria) adds a Criteria as subCriteriastatic Criteria
Static factory method to create a new Criteria for field with given namestatic Criteria
Static factory method to create a new Criteria for provided fieldAdds a new filter CriteriaEntry forgeoLocation WITHIN distance
Adds a new filter CriteriaEntry for GEO_WITHIN.Adds a new filter CriteriaEntry forlocation WITHIN distance
Adds a new filter CriteriaEntry forlocation WITHIN distance
Modifier and TypeMethodDescriptionfinal <T extends CriteriaQuery>
TCriteriaQuery.addCriteria
(Criteria criteria) Chain a Criteria to this object.Chain an array of Criteria to this object.static CriteriaQueryBuilder
Chain a new or-Criteria.Criteria.subCriteria
(Criteria criteria) adds a Criteria as subCriteriaModifierConstructorDescriptionCriteriaQuery
(Criteria criteria) CriteriaQuery
(Criteria criteria, Pageable pageable) CriteriaQueryBuilder
(Criteria criteria) ModifierConstructorDescriptionprotected
Creates a Criteria for the given field, sets it's criteriaChain to the given value and adds itself to the end of the chain.protected
Creates a Criteria for the given field, sets it's criteriaChain to the given value and adds itself to the end of the chain.