code
stringlengths
25
201k
docstring
stringlengths
19
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
51
path
stringlengths
11
314
url
stringlengths
62
377
license
stringclasses
7 values
public Criteria or(Criteria criteria) { Assert.notNull(criteria, "Cannot chain 'null' criteria."); Assert.notNull(criteria.getField(), "Cannot chain Criteria with no field"); Criteria orCriteria = new OrCriteria(this.criteriaChain, criteria.getField()); orCriteria.queryCriteriaEntries.addAll(criteria.queryCriteriaEntries); orCriteria.filterCriteriaEntries.addAll(criteria.filterCriteriaEntries); orCriteria.subCriteria.addAll(criteria.subCriteria); orCriteria.boost = criteria.boost; orCriteria.negating = criteria.isNegating(); return orCriteria; }
Chain a new or-Criteria. The new Criteria uses the {@link #getField()}, {@link #getQueryCriteriaEntries()} and {@link #getFilterCriteriaEntries()} of the passed in parameter. the new created criteria is added to the criteria chain. @param criteria contains the information for the new Criteria @return the new chained criteria
or
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 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, upperBound })); return this; }
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 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 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 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 CriteriaEntry(OperationKey.BBOX, new Object[] { topLeftGeohash, bottomRightGeohash })); return this; }
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 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, distance })); return this; }
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, distance })); return this; }
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 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 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
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 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
public Builder withTimeout(@Nullable Duration timeout) { this.timeout = timeout; return this; }
Period each deletion request waits for active shards. By default, this is set to {@code 1m} (one minute).
withTimeout
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 withQuery(Query query) { this.query = query; return this; }
Query that specifies the documents to run on child documents of the {@link #type} field.
withQuery
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/HasChildQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/HasChildQuery.java
Apache-2.0
public Builder withIgnoreUnmapped(@Nullable Boolean ignoreUnmapped) { this.ignoreUnmapped = ignoreUnmapped; return this; }
Indicates whether to ignore an unmapped {@link #type} and not return any documents instead of an error. Default, this is set to {@code false}.
withIgnoreUnmapped
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/HasChildQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/HasChildQuery.java
Apache-2.0
public String getEsName() { return esName; }
OpType for the index operation. @since 4.2
getEsName
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/IndexQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/IndexQuery.java
Apache-2.0
public Builder withName(@Nullable String name) { this.name = name; return this; }
The name to be used for the particular inner hit definition in the response.
withName
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/InnerHitsQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/InnerHitsQuery.java
Apache-2.0
public Builder withSize(@Nullable Integer size) { this.size = size; return this; }
The maximum number of hits to return.
withSize
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/InnerHitsQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/InnerHitsQuery.java
Apache-2.0
static Query findAll() { return new StringQuery("{\"match_all\":{}}"); }
Get a {@link Query} that matches all documents in the index. @return new instance of {@link Query}. @since 3.2
findAll
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
Apache-2.0
static Query multiGetQueryWithRouting(List<IdWithRouting> idsWithRouting) { Assert.notNull(idsWithRouting, "idsWithRouting must not be null"); BaseQuery query = new BaseQuery(); query.setIdsWithRouting(idsWithRouting); return query; }
Utility method to get a query for a multiget request @param idsWithRouting Ids with routing values used in a multi-get request. @return Query instance
multiGetQueryWithRouting
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
Apache-2.0
static Query multiGetQuery(Collection<String> ids) { Assert.notNull(ids, "ids must not be null"); BaseQuery query = new BaseQuery(); query.setIds(ids); return query; }
Utility method to get a query for a multiget request @param ids Ids used in a multi-get request. @return Query instance
multiGetQuery
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
Apache-2.0
default Optional<HighlightQuery> getHighlightQuery() { return Optional.empty(); }
@return the optional set {@link HighlightQuery}. @since 4.0
getHighlightQuery
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
Apache-2.0
default boolean hasScrollTime() { return getScrollTime() != null; }
@return {@literal true} if a scroll time is set. @since 4.0
hasScrollTime
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
Apache-2.0
default boolean getExplain() { return false; }
@return {@literal true} when the query has the explain parameter set, defaults to {@literal false} @since 4.2
getExplain
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
Apache-2.0
default List<RescorerQuery> getRescorerQueries() { return Collections.emptyList(); }
get the list of {@link RescorerQuery}s @since 4.2
getRescorerQueries
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
Apache-2.0
@Nullable default PointInTime getPointInTime() { return null; }
@return the point in time id to use in the query @since 5.0
getPointInTime
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/Query.java
Apache-2.0
public Map<String, Object> getMapping() { Map<String, Object> map = new HashMap<>(); map.put("type", type); if (script != null) { map.put("script", script); } return map; }
@return the mapping as a Map like it is needed for the Elasticsearch client
getMapping
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/RuntimeField.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/RuntimeField.java
Apache-2.0
public static ScriptData of(@Nullable String language, @Nullable String script, @Nullable String scriptName, @Nullable Map<String, Object> params) { return new ScriptData(language, script, scriptName, params); }
factory method to create a ScriptData object. @since 5.2
of
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/ScriptData.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/ScriptData.java
Apache-2.0
public static ScriptData of(Function<Builder, Builder> builderFunction) { Assert.notNull(builderFunction, "builderFunction must not be null"); return builderFunction.apply(new Builder()).build(); }
factory method to create a ScriptData object using a ScriptBuilder callback. @param builderFunction function called to populate the builder @return
of
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/ScriptData.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/ScriptData.java
Apache-2.0
@Override public String toString() { return "SeqNoPrimaryTerm{" + "sequenceNumber=" + sequenceNumber + ", primaryTerm=" + primaryTerm + '}'; }
Creates an instance of SeqNoPrimaryTerm with the given seq_no and primary_term. The passed values are validated: sequenceNumber must be non-negative, primaryTerm must be positive. If validation fails, an IllegalArgumentException is thrown. @param sequenceNumber seq_no, must not be negative @param primaryTerm primary_term, must be positive @throws IllegalArgumentException if seq_no or primary_term is not valid
toString
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SeqNoPrimaryTerm.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SeqNoPrimaryTerm.java
Apache-2.0
@Nullable default Boolean fetchSource() { return null; }
Flag to set the _source parameter in a query to true or false. If this is not null, the values returned from getIncludes() and getExcludes() are ignored @since 5.5
fetchSource
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SourceFilter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SourceFilter.java
Apache-2.0
public Builder withAllowPartialSearchResults(Boolean allowPartialSearchResults) { this.allowPartialSearchResults = allowPartialSearchResults; return this; }
If true, returns partial results if there are shard request timeouts or shard failures.
withAllowPartialSearchResults
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withCatalog(String catalog) { this.catalog = catalog; return this; }
Default catalog/cluster for queries. If unspecified, the queries are executed on the data in the local cluster only.
withCatalog
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withColumnar(Boolean columnar) { this.columnar = columnar; return this; }
If true, returns results in a columnar format.
withColumnar
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withCursor(String cursor) { this.cursor = cursor; return this; }
To retrieve a set of paginated results, ignore other request body parameters when specifying a cursor and using the {@link #columnar} and {@link #timeZone} parameters.
withCursor
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withFetchSize(Integer fetchSize) { this.fetchSize = fetchSize; return this; }
Maximum number of rows to return in the response.
withFetchSize
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withFieldMultiValueLeniency(Boolean fieldMultiValueLeniency) { this.fieldMultiValueLeniency = fieldMultiValueLeniency; return this; }
If false, the API returns an error for fields containing array values.
withFieldMultiValueLeniency
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder setFilter(Query filter) { this.filter = filter; return this; }
Query that filter documents for the SQL search.
setFilter
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withIndexIncludeFrozen(Boolean indexIncludeFrozen) { this.indexIncludeFrozen = indexIncludeFrozen; return this; }
If true, the search can run on frozen indices.
withIndexIncludeFrozen
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder setKeepAlive(Duration keepAlive) { this.keepAlive = keepAlive; return this; }
Retention period for an async or saved synchronous search.
setKeepAlive
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withKeepOnCompletion(Boolean keepOnCompletion) { this.keepOnCompletion = keepOnCompletion; return this; }
If it is true, it will store synchronous searches when the {@link #waitForCompletionTimeout} parameter is specified.
withKeepOnCompletion
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withPageTimeout(Duration pageTimeout) { this.pageTimeout = pageTimeout; return this; }
Minimum retention period for the scroll cursor.
withPageTimeout
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withParams(List<Object> params) { this.params = params; return this; }
Values for parameters in the query.
withParams
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withParam(Object param) { if (this.params == null) { this.params = new ArrayList<>(); } this.params.add(param); return this; }
Value for parameters in the query.
withParam
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public Builder withTimeZone(TimeZone timeZone) { this.timeZone = timeZone; return this; }
Time zone ID for the search.
withTimeZone
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/query/SqlQuery.java
Apache-2.0
public long getCreated() { return created; }
The number of documents that were successfully created.
getCreated
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
Apache-2.0
public long getThrottledMillis() { return throttledMillis; }
Number of milliseconds the request slept to conform to requests_per_second.
getThrottledMillis
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
Apache-2.0
public double getRequestsPerSecond() { return requestsPerSecond; }
The number of requests per second effectively executed during the reindex.
getRequestsPerSecond
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
Apache-2.0
public long getThrottledUntilMillis() { return throttledUntilMillis; }
This field should always be equal to zero in a _reindex response. It only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform to requests_per_second.
getThrottledUntilMillis
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
Apache-2.0
public static Failure.FailureBuilder builder() { return new Failure.FailureBuilder(); }
Create a new {@link Failure.FailureBuilder} to build {@link Failure} @return a new {@link Failure.FailureBuilder} to build {@link Failure}
builder
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/reindex/ReindexResponse.java
Apache-2.0
public Builder withRunning(boolean running) { this.running = running; return this; }
If {@code true}, the search is still running.
withRunning
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
Apache-2.0
public Builder withPartial(boolean partial) { this.partial = partial; return this; }
If {@code true}, the response does not contain complete search results.
withPartial
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
Apache-2.0
public Builder withCursor(@Nullable String cursor) { this.cursor = cursor; return this; }
Cursor for the next set of paginated results.
withCursor
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
Apache-2.0
public Builder withColumns(List<Column> columns) { this.columns.addAll(columns); return this; }
Column headings for the search results.
withColumns
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
Apache-2.0
public Builder withColumn(Column column) { this.columns.add(column); return this; }
Column heading for the search results.
withColumn
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/sql/SqlResponse.java
Apache-2.0
@Override public QueryMethod getQueryMethod() { return queryMethod; }
AbstractElasticsearchRepositoryQuery @author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author Haibo Liu
getQueryMethod
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/repository/query/AbstractElasticsearchRepositoryQuery.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/repository/query/AbstractElasticsearchRepositoryQuery.java
Apache-2.0