code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public Criteria subCriteria(Criteria criteria) { Assert.notNull(criteria, "criteria must not be null"); subCriteria.add(criteria); return this; }
adds a Criteria as subCriteria @param criteria the criteria to add, must not be {@literal null} @return this object @since 4.1
subCriteria
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria is(Object o) { queryCriteriaEntries.add(new CriteriaEntry(OperationKey.EQUALS, o)); return this; }
Add a {@link OperationKey#EQUALS} entry to the {@link #queryCriteriaEntries} @param o the argument to the operation @return this object
is
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria exists() { queryCriteriaEntries.add(new CriteriaEntry(OperationKey.EXISTS)); return this; }
Add a {@link OperationKey#EXISTS} entry to the {@link #queryCriteriaEntries} @return this object @since 4.0
exists
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria between(@Nullable Object lowerBound, @Nullable Object upperBound) { if (lowerBound == null && upperBound == null) { throw new InvalidDataAccessApiUsageException("Range [* TO *] is not allowed"); } queryCriteriaEntries.add(new CriteriaEntry(OperationKey.BETWEEN, new Object[] { lowerBound, uppe...
Adds a OperationKey.BETWEEN entry to the {@link #queryCriteriaEntries}. Only one of the parameters may be null to define an unbounded end of the range. @param lowerBound the lower bound of the range, null for unbounded @param upperBound the upper bound of the range, null for unbounded @return this object
between
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria startsWith(String s) { Assert.notNull(s, "s may not be null"); assertNoBlankInWildcardQuery(s, false, true); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.STARTS_WITH, s)); return this; }
Add a {@link OperationKey#STARTS_WITH} entry to the {@link #queryCriteriaEntries} @param s the argument to the operation @return this object
startsWith
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria contains(String s) { Assert.notNull(s, "s may not be null"); assertNoBlankInWildcardQuery(s, true, true); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.CONTAINS, s)); return this; }
Add a {@link OperationKey#CONTAINS} entry to the {@link #queryCriteriaEntries} <br/> <strong>NOTE: </strong> mind your schema as leading wildcards may not be supported and/or execution might be slow. @param s the argument to the operation @return this object
contains
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria endsWith(String s) { Assert.notNull(s, "s may not be null"); assertNoBlankInWildcardQuery(s, true, false); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.ENDS_WITH, s)); return this; }
Add a {@link OperationKey#ENDS_WITH} entry to the {@link #queryCriteriaEntries} <br/> <strong>NOTE: </strong> mind your schema as leading wildcards may not be supported and/or execution might be slow. @param s the argument to the operation @return this object
endsWith
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria in(Object... values) { return in(toCollection(values)); }
Add a {@link OperationKey#IN} entry to the {@link #queryCriteriaEntries}. This will create a terms query, so don't use it with text fields as these are analyzed and changed by Elasticsearch (converted to lowercase with the default analyzer). If used for Strings, these should be marked as field type Keyword. @param val...
in
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria in(Iterable<?> values) { Assert.notNull(values, "Collection of 'in' values must not be null"); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.IN, values)); return this; }
Add a {@link OperationKey#IN} entry to the {@link #queryCriteriaEntries}. See the comment at {@link Criteria#in(Object...)}. @param values the argument to the operation @return this object
in
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria notIn(Object... values) { return notIn(toCollection(values)); }
Add a {@link OperationKey#NOT_IN} entry to the {@link #queryCriteriaEntries}. See the comment at {@link Criteria#in(Object...)}. @param values the argument to the operation @return this object
notIn
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria notIn(Iterable<?> values) { Assert.notNull(values, "Collection of 'NotIn' values must not be null"); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.NOT_IN, values)); return this; }
Add a {@link OperationKey#NOT_IN} entry to the {@link #queryCriteriaEntries}. See the comment at {@link Criteria#in(Object...)}. @param values the argument to the operation @return this object
notIn
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria expression(String s) { queryCriteriaEntries.add(new CriteriaEntry(OperationKey.EXPRESSION, s)); return this; }
Add a {@link OperationKey#EXPRESSION} entry to the {@link #queryCriteriaEntries} allowing native elasticsearch expressions @param s the argument to the operation @return this object
expression
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria fuzzy(String s) { queryCriteriaEntries.add(new CriteriaEntry(OperationKey.FUZZY, s)); return this; }
Add a {@link OperationKey#FUZZY} entry to the {@link #queryCriteriaEntries} @param s the argument to the operation @return this object
fuzzy
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria lessThanEqual(Object upperBound) { Assert.notNull(upperBound, "upperBound must not be null"); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.LESS_EQUAL, upperBound)); return this; }
Add a {@link OperationKey#LESS_EQUAL} entry to the {@link #queryCriteriaEntries} @param upperBound the argument to the operation @return this object
lessThanEqual
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria lessThan(Object upperBound) { Assert.notNull(upperBound, "upperBound must not be null"); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.LESS, upperBound)); return this; }
Add a {@link OperationKey#LESS} entry to the {@link #queryCriteriaEntries} @param upperBound the argument to the operation @return this object
lessThan
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria greaterThanEqual(Object lowerBound) { Assert.notNull(lowerBound, "lowerBound must not be null"); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.GREATER_EQUAL, lowerBound)); return this; }
Add a {@link OperationKey#GREATER_EQUAL} entry to the {@link #queryCriteriaEntries} @param lowerBound the argument to the operation @return this object
greaterThanEqual
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria greaterThan(Object lowerBound) { Assert.notNull(lowerBound, "lowerBound must not be null"); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.GREATER, lowerBound)); return this; }
Add a {@link OperationKey#GREATER} entry to the {@link #queryCriteriaEntries} @param lowerBound the argument to the operation @return this object
greaterThan
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria matches(Object value) { Assert.notNull(value, "value must not be null"); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.MATCHES, value)); return this; }
Add a {@link OperationKey#MATCHES} entry to the {@link #queryCriteriaEntries}. This will build a match query with the OR operator. @param value the value to match @return this object @since 4.1
matches
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria matchesAll(Object value) { Assert.notNull(value, "value must not be null"); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.MATCHES_ALL, value)); return this; }
Add a {@link OperationKey#MATCHES} entry to the {@link #queryCriteriaEntries}. This will build a match query with the AND operator. @param value the value to match @return this object @since 4.1
matchesAll
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria empty() { queryCriteriaEntries.add(new CriteriaEntry(OperationKey.EMPTY)); return this; }
Add a {@link OperationKey#EMPTY} entry to the {@link #queryCriteriaEntries}. @return this object @since 4.3
empty
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria notEmpty() { queryCriteriaEntries.add(new CriteriaEntry(OperationKey.NOT_EMPTY)); return this; }
Add a {@link OperationKey#NOT_EMPTY} entry to the {@link #queryCriteriaEntries}. @return this object @since 4.3
notEmpty
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria regexp(String value) { Assert.notNull(value, "value must not be null"); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.REGEXP, value)); return this; }
Add a {@link OperationKey#REGEXP} entry to the {@link #queryCriteriaEntries}. @param value the regexp value to match @return this object @since 5.1
regexp
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria boundedBy(GeoBox boundingBox) { Assert.notNull(boundingBox, "boundingBox value for boundedBy criteria must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.BBOX, new Object[] { boundingBox })); return this; }
Adds a new filter CriteriaEntry for {@code location GeoBox bounding box} @param boundingBox {@link org.springframework.data.elasticsearch.core.geo.GeoBox} bounding box(left top corner + right bottom corner) @return this object
boundedBy
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria boundedBy(Box boundingBox) { Assert.notNull(boundingBox, "boundingBox value for boundedBy criteria must not be null"); filterCriteriaEntries .add(new CriteriaEntry(OperationKey.BBOX, new Object[] { boundingBox.getFirst(), boundingBox.getSecond() })); return this; }
Adds a new filter CriteriaEntry for {@code location Box bounding box} @param boundingBox {@link org.springframework.data.elasticsearch.core.geo.GeoBox} bounding box(left top corner + right bottom corner) @return this object
boundedBy
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria boundedBy(String topLeftGeohash, String bottomRightGeohash) { Assert.isTrue(StringUtils.hasLength(topLeftGeohash), "topLeftGeohash must not be empty"); Assert.isTrue(StringUtils.hasLength(bottomRightGeohash), "bottomRightGeohash must not be empty"); filterCriteriaEntries .add(new CriteriaEnt...
Adds a new filter CriteriaEntry for bounding box created from points @param topLeftGeohash left top corner of bounding box as geohash @param bottomRightGeohash right bottom corner of bounding box as geohash @return this object
boundedBy
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria boundedBy(GeoPoint topLeftPoint, GeoPoint bottomRightPoint) { Assert.notNull(topLeftPoint, "topLeftPoint must not be null"); Assert.notNull(bottomRightPoint, "bottomRightPoint must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.BBOX, new Object[] { topLeftPoint, bottomRi...
Adds a new filter CriteriaEntry for bounding box created from points @param topLeftPoint left top corner of bounding box @param bottomRightPoint right bottom corner of bounding box @return this object
boundedBy
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria boundedBy(Point topLeftPoint, Point bottomRightPoint) { Assert.notNull(topLeftPoint, "topLeftPoint must not be null"); Assert.notNull(bottomRightPoint, "bottomRightPoint must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.BBOX, new Object[] { GeoPoint.fromPoint(topLe...
Adds a new filter CriteriaEntry for bounding box created from points @param topLeftPoint left top corner of bounding box @param bottomRightPoint right bottom corner of bounding box @return this object
boundedBy
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria within(GeoPoint location, String distance) { Assert.notNull(location, "Location value for near criteria must not be null"); Assert.notNull(location, "Distance value for near criteria must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.WITHIN, new Object[] { location, dis...
Adds a new filter CriteriaEntry for {@code location WITHIN distance} @param location {@link org.springframework.data.elasticsearch.core.geo.GeoPoint} center coordinates @param distance {@link String} radius as a string (e.g. : '100km'). Distance unit : either mi/miles or km can be set @return this object
within
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria within(Point location, Distance distance) { Assert.notNull(location, "Location value for near criteria must not be null"); Assert.notNull(location, "Distance value for near criteria must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.WITHIN, new Object[] { location, dist...
Adds a new filter CriteriaEntry for {@code location WITHIN distance} @param location {@link org.springframework.data.geo.Point} center coordinates @param distance {@link org.springframework.data.geo.Distance} radius . @return this object
within
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria within(String geoLocation, String distance) { Assert.isTrue(StringUtils.hasLength(geoLocation), "geoLocation value must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.WITHIN, new Object[] { geoLocation, distance })); return this; }
Adds a new filter CriteriaEntry for {@code geoLocation WITHIN distance} @param geoLocation {@link String} center point supported formats: lat on = > "41.2,45.1", geohash = > "asd9as0d" @param distance {@link String} radius as a string (e.g. : '100km'). Distance unit : either mi/miles or km can be set @return ...
within
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria intersects(GeoJson<?> geoShape) { Assert.notNull(geoShape, "geoShape must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.GEO_INTERSECTS, geoShape)); return this; }
Adds a new filter CriteriaEntry for GEO_INTERSECTS. @param geoShape the GeoJson shape @return this object
intersects
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria isDisjoint(GeoJson<?> geoShape) { Assert.notNull(geoShape, "geoShape must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.GEO_IS_DISJOINT, geoShape)); return this; }
Adds a new filter CriteriaEntry for GEO_IS_DISJOINT. @param geoShape the GeoJson shape @return this object
isDisjoint
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria within(GeoJson<?> geoShape) { Assert.notNull(geoShape, "geoShape must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.GEO_WITHIN, geoShape)); return this; }
Adds a new filter CriteriaEntry for GEO_WITHIN. @param geoShape the GeoJson shape @return this object
within
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria contains(GeoJson<?> geoShape) { Assert.notNull(geoShape, "geoShape must not be null"); filterCriteriaEntries.add(new CriteriaEntry(OperationKey.GEO_CONTAINS, geoShape)); return this; }
Adds a new filter CriteriaEntry for GEO_CONTAINS. @param geoShape the GeoJson shape @return this object
contains
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria hasChild(HasChildQuery query) { Assert.notNull(query, "has_child query must not be null."); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.HAS_CHILD, query)); return this; }
Adds a new filter CriteriaEntry for HAS_CHILD. @param query the has_child query. @return the current Criteria.
hasChild
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Criteria hasParent(HasParentQuery query) { Assert.notNull(query, "has_parent query must not be null."); queryCriteriaEntries.add(new CriteriaEntry(OperationKey.HAS_PARENT, query)); return this; }
Adds a new filter CriteriaEntry for HAS_PARENT. @param query the has_parent query. @return the current Criteria.
hasParent
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
private void assertNoBlankInWildcardQuery(String searchString, boolean leadingWildcard, boolean trailingWildcard) { if (searchString.contains(CRITERIA_VALUE_SEPARATOR)) { throw new InvalidDataAccessApiUsageException("Cannot constructQuery '" + (leadingWildcard ? "*" : "") + '"' + searchString + '"' + (traili...
Adds a new filter CriteriaEntry for HAS_PARENT. @param query the has_parent query. @return the current Criteria.
assertNoBlankInWildcardQuery
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
private List<Object> toCollection(Object... values) { return Arrays.asList(values); }
Adds a new filter CriteriaEntry for HAS_PARENT. @param query the has_parent query. @return the current Criteria.
toCollection
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Criteria criteria = (Criteria) o; if (Float.compare(criteria.boost, boost) != 0) return false; if (negating != criteria.negating) return false; if (!Objects.equal...
Adds a new filter CriteriaEntry for HAS_PARENT. @param query the has_parent query. @return the current Criteria.
equals
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
@Override public int hashCode() { int result = field != null ? field.hashCode() : 0; result = 31 * result + (boost != +0.0f ? Float.floatToIntBits(boost) : 0); result = 31 * result + (negating ? 1 : 0); // the criteriaChain contains "this" object, so we need to filter it out // to avoid a stackoverflow here,...
Adds a new filter CriteriaEntry for HAS_PARENT. @param query the has_parent query. @return the current Criteria.
hashCode
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
@Override public String toString() { return "Criteria{" + // "field=" + field + // ", boost=" + boost + // ", negating=" + negating + // ", queryCriteriaEntries=" + queryCriteriaEntries + // ", filterCriteriaEntries=" + filterCriteriaEntries + // ", subCriteria=" + subCriteria + // '}'; /...
Adds a new filter CriteriaEntry for HAS_PARENT. @param query the has_parent query. @return the current Criteria.
toString
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
@Override public Operator getOperator() { return Operator.OR; }
Adds a new filter CriteriaEntry for HAS_PARENT. @param query the has_parent query. @return the current Criteria.
getOperator
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
List<Criteria> filter(Criteria criteria) { return this.stream().filter(c -> c != criteria).collect(Collectors.toList()); }
return a copy of this list with the given element filtered out. @param criteria the element to filter @return the filtered list
filter
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public boolean hasNoValue() { return this == OperationKey.EXISTS || this == OperationKey.EMPTY || this == OperationKey.NOT_EMPTY; }
@return true if this key does not have an associated value @since 4.4
hasNoValue
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public boolean hasValue() { return !hasNoValue(); }
@return true if this key does have an associated value @since 4.4
hasValue
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public OperationKey getKey() { return key; }
A class defining a single operation and it's argument value for the field of a {@link Criteria}.
getKey
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public void setValue(Object value) { Assert.notNull(value, "value must not be null"); this.value = value; }
A class defining a single operation and it's argument value for the field of a {@link Criteria}.
setValue
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public Object getValue() { Assert.isTrue(key != OperationKey.EXISTS, key.name() + " has no value"); Assert.notNull(value, "unexpected null value"); return value; }
A class defining a single operation and it's argument value for the field of a {@link Criteria}.
getValue
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CriteriaEntry that = (CriteriaEntry) o; if (key != that.key) return false; return Objects.equals(value, that.value); }
A class defining a single operation and it's argument value for the field of a {@link Criteria}.
equals
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
@Override public int hashCode() { int result = key.hashCode(); result = 31 * result + (value != null ? value.hashCode() : 0); return result; }
A class defining a single operation and it's argument value for the field of a {@link Criteria}.
hashCode
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
@Override public String toString() { return "CriteriaEntry{" + "key=" + key + ", value=" + value + '}'; }
A class defining a single operation and it's argument value for the field of a {@link Criteria}.
toString
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Criteria.java
Apache-2.0
public static Builder builder(Query query) { return new Builder(query); }
Query that specifies the documents to delete.
builder
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public String getQ() { return q; }
Query that specifies the documents to delete.
getQ
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Boolean getAnalyzeWildcard() { return analyzeWildcard; }
Query that specifies the documents to delete.
getAnalyzeWildcard
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public String getAnalyzer() { return analyzer; }
Query that specifies the documents to delete.
getAnalyzer
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public OperatorType getDefaultOperator() { return defaultOperator; }
Query that specifies the documents to delete.
getDefaultOperator
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public String getDf() { return df; }
Query that specifies the documents to delete.
getDf
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Boolean getLenient() { return lenient; }
Query that specifies the documents to delete.
getLenient
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Boolean getAllowNoIndices() { return allowNoIndices; }
Query that specifies the documents to delete.
getAllowNoIndices
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public ConflictsType getConflicts() { return conflicts; }
Query that specifies the documents to delete.
getConflicts
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public EnumSet<IndicesOptions.WildcardStates> getExpandWildcards() { return expandWildcards; }
Query that specifies the documents to delete.
getExpandWildcards
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Boolean getIgnoreUnavailable() { return ignoreUnavailable; }
Query that specifies the documents to delete.
getIgnoreUnavailable
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Long getMaxDocs() { return maxDocs; }
Query that specifies the documents to delete.
getMaxDocs
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public String getPreference() { return preference; }
Query that specifies the documents to delete.
getPreference
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Boolean getRequestCache() { return requestCache; }
Query that specifies the documents to delete.
getRequestCache
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Boolean getRefresh() { return refresh; }
Query that specifies the documents to delete.
getRefresh
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Float getRequestsPerSecond() { return requestsPerSecond; }
Query that specifies the documents to delete.
getRequestsPerSecond
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public String getRouting() { return routing; }
Query that specifies the documents to delete.
getRouting
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Duration getScroll() { return scroll; }
Query that specifies the documents to delete.
getScroll
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Long getScrollSize() { return scrollSize; }
Query that specifies the documents to delete.
getScrollSize
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public SearchType getSearchType() { return searchType; }
Query that specifies the documents to delete.
getSearchType
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Duration getSearchTimeout() { return searchTimeout; }
Query that specifies the documents to delete.
getSearchTimeout
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Integer getSlices() { return slices; }
Query that specifies the documents to delete.
getSlices
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Sort getSort() { return sort; }
Query that specifies the documents to delete.
getSort
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public List<String> getStats() { return stats; }
Query that specifies the documents to delete.
getStats
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Long getTerminateAfter() { return terminateAfter; }
Query that specifies the documents to delete.
getTerminateAfter
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Duration getTimeout() { return timeout; }
Query that specifies the documents to delete.
getTimeout
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Boolean getVersion() { return version; }
Query that specifies the documents to delete.
getVersion
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
@Nullable public Query getQuery() { return query; }
Query that specifies the documents to delete.
getQuery
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withLuceneQuery(@Nullable String luceneQuery) { this.luceneQuery = luceneQuery; return this; }
Query in the Lucene query string syntax.
withLuceneQuery
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withAnalyzeWildcard(@Nullable Boolean analyzeWildcard) { this.analyzeWildcard = analyzeWildcard; return this; }
If true, wildcard and prefix queries are analyzed. Defaults to false. This parameter can only be used when the lucene query {@code q} parameter is specified.
withAnalyzeWildcard
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withAnalyzer(@Nullable String analyzer) { this.analyzer = analyzer; return this; }
Analyzer to use for the query string. This parameter can only be used when the lucene query {@code q} parameter is specified.
withAnalyzer
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withDefaultOperator(@Nullable OperatorType defaultOperator) { this.defaultOperator = defaultOperator; return this; }
The default operator for a query string query: {@literal AND} or {@literal OR}. Defaults to {@literal OR}. This parameter can only be used when the lucene query {@code q} parameter is specified.
withDefaultOperator
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withDefaultField(@Nullable String defaultField) { this.defaultField = defaultField; return this; }
Field to be used as the default when no field prefix is specified in the query string. This parameter can only be used when the lucene query {@code q} parameter is specified. <p> e.g: {@code {"query":{"prefix":{"user.name":{"value":"es"}}}} }
withDefaultField
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withLenient(@Nullable Boolean lenient) { this.lenient = lenient; return this; }
If a query contains errors related to the format of the data being entered, they will be disregarded unless specified otherwise. By default, this feature is turned off.
withLenient
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withAllowNoIndices(@Nullable Boolean allowNoIndices) { this.allowNoIndices = allowNoIndices; return this; }
An error will occur if the condition is {@code false} and any of the following are true: a wildcard expression, an index alias, or the {@literal _all value} only targets missing or closed indices. By default, this is set to {@code true}.
withAllowNoIndices
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withConflicts(@Nullable ConflictsType conflicts) { this.conflicts = conflicts; return this; }
Define the types of conflicts that occur when a query encounters version conflicts: abort or proceed. Defaults to abort.
withConflicts
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder setExpandWildcards(@Nullable EnumSet<IndicesOptions.WildcardStates> expandWildcards) { this.expandWildcards = expandWildcards; return this; }
Type of index that wildcard patterns can match. Defaults to {@literal open}.
setExpandWildcards
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withIgnoreUnavailable(@Nullable Boolean ignoreUnavailable) { this.ignoreUnavailable = ignoreUnavailable; return this; }
An error occurs if it is directed at an index that is missing or closed when it is {@code false}. By default, this is set to {@code false}.
withIgnoreUnavailable
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withMaxDocs(@Nullable Long maxDocs) { this.maxDocs = maxDocs; return this; }
Maximum number of documents to process. Defaults to all documents.
withMaxDocs
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withPreference(@Nullable String preference) { this.preference = preference; return this; }
Specifies the node or shard the operation should be performed on.
withPreference
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withRequestCache(@Nullable Boolean requestCache) { this.requestCache = requestCache; return this; }
Use the request cache when it is {@code true}. By default, use the index-level setting.
withRequestCache
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withRefresh(@Nullable Boolean refresh) { this.refresh = refresh; return this; }
Refreshes all shards involved in the deleting by query after the request completes when it is {@code true}. By default, this is set to {@code false}.
withRefresh
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withRouting(@Nullable String routing) { this.routing = routing; return this; }
Custom value used to route operations to a specific shard.
withRouting
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withScrollTime(@Nullable Duration scrollTime) { this.scrollTime = scrollTime; return this; }
Period to retain the search context for scrolling.
withScrollTime
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withScrollSize(@Nullable Long scrollSize) { this.scrollSize = scrollSize; return this; }
Size of the scroll request that powers the operation. By default, this is set to {@code 1000}.
withScrollSize
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withSearchType(@Nullable SearchType searchType) { this.searchType = searchType; return this; }
The type of the search operation.
withSearchType
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withSearchTimeout(@Nullable Duration searchTimeout) { this.searchTimeout = searchTimeout; return this; }
Explicit timeout for each search request. By default, this is set to no timeout.
withSearchTimeout
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withSort(@Nullable Sort sort) { this.sort = sort; return this; }
Sort search results in a specific order.
withSort
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0
public Builder withStats(@Nullable List<String> stats) { this.stats = stats; return this; }
Specific {@code tag} of the request for logging and statistical purposes.
withStats
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/DeleteQuery.java
Apache-2.0