Class SqlQuery.Builder
java.lang.Object
org.springframework.data.elasticsearch.core.query.SqlQuery.Builder
- Enclosing class:
- SqlQuery
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Query that filter documents for the SQL search.setKeepAlive
(Duration keepAlive) Retention period for an async or saved synchronous search.withAllowPartialSearchResults
(Boolean allowPartialSearchResults) If true, returns partial results if there are shard request timeouts or shard failures.withCatalog
(String catalog) Default catalog/cluster for queries.withColumnar
(Boolean columnar) If true, returns results in a columnar format.withCursor
(String cursor) To retrieve a set of paginated results, ignore other request body parameters when specifying a cursor and using thecolumnar
andtimeZone
parameters.withFetchSize
(Integer fetchSize) Maximum number of rows to return in the response.withFieldMultiValueLeniency
(Boolean fieldMultiValueLeniency) If false, the API returns an error for fields containing array values.withIndexIncludeFrozen
(Boolean indexIncludeFrozen) If true, the search can run on frozen indices.withKeepOnCompletion
(Boolean keepOnCompletion) If it is true, it will store synchronous searches when thewaitForCompletionTimeout
parameter is specified.withPageTimeout
(Duration pageTimeout) Minimum retention period for the scroll cursor.Value for parameters in the query.withParams
(List<Object> params) Values for parameters in the query.withRequestTimeout
(Duration requestTimeout) Timeout before the request fails.withTimeZone
(TimeZone timeZone) Time zone ID for the search.withWaitForCompletionTimeout
(Duration waitForCompletionTimeout) Period to wait for complete results.
-
Method Details
-
withAllowPartialSearchResults
If true, returns partial results if there are shard request timeouts or shard failures. -
withCatalog
Default catalog/cluster for queries. If unspecified, the queries are executed on the data in the local cluster only. -
withColumnar
If true, returns results in a columnar format. -
withCursor
To retrieve a set of paginated results, ignore other request body parameters when specifying a cursor and using thecolumnar
andtimeZone
parameters. -
withFetchSize
Maximum number of rows to return in the response. -
withFieldMultiValueLeniency
If false, the API returns an error for fields containing array values. -
setFilter
Query that filter documents for the SQL search. -
withIndexIncludeFrozen
If true, the search can run on frozen indices. -
setKeepAlive
Retention period for an async or saved synchronous search. -
withKeepOnCompletion
If it is true, it will store synchronous searches when thewaitForCompletionTimeout
parameter is specified. -
withPageTimeout
Minimum retention period for the scroll cursor. -
withRequestTimeout
Timeout before the request fails. -
withParams
Values for parameters in the query. -
withParam
Value for parameters in the query. -
withTimeZone
Time zone ID for the search. -
withWaitForCompletionTimeout
Period to wait for complete results. -
build
-