Class OpenPointInTimeRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<OpenPointInTimeRequest.Builder>
co.elastic.clients.elasticsearch.core.OpenPointInTimeRequest.Builder
- All Implemented Interfaces:
WithJson<OpenPointInTimeRequest.Builder>,ObjectBuilder<OpenPointInTimeRequest>
- Enclosing class:
- OpenPointInTimeRequest
public static class OpenPointInTimeRequest.Builder
extends RequestBase.AbstractBuilder<OpenPointInTimeRequest.Builder>
implements ObjectBuilder<OpenPointInTimeRequest>
Builder for
OpenPointInTimeRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowPartialSearchResults(Boolean value) Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT.build()Builds aOpenPointInTimeRequest.expandWildcards(ExpandWildcard value, ExpandWildcard... values) The type of index that wildcard patterns can match.expandWildcards(List<ExpandWildcard> list) The type of index that wildcard patterns can match.ignoreUnavailable(Boolean value) Iffalse, the request returns an error if it targets a missing or closed index.Required - A comma-separated list of index names to open point in time; use_allor empty string to perform the operation on all indicesRequired - A comma-separated list of index names to open point in time; use_allor empty string to perform the operation on all indicesindexFilter(Query value) Filter indices if the provided query rewrites tomatch_noneon every shard.indexFilter(QueryVariant value) Filter indices if the provided query rewrites tomatch_noneon every shard.Filter indices if the provided query rewrites tomatch_noneon every shard.Required - Extend the length of time that the point in time persists.Required - Extend the length of time that the point in time persists.Maximum number of concurrent shard requests that each sub-search request executes per node.preference(String value) The node or shard the operation should be performed on.projectRouting(String value) Specifies a subset of projects to target for the PIT request using project metadata tags in a subset of Lucene query syntax.A custom value that is used to route operations to a specific shard.protected OpenPointInTimeRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowPartialSearchResults
Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT. Iffalse, creating a point in time request when a shard is missing or unavailable will throw an exception. Iftrue, the point in time will contain all the shards that are available at the time of the request.API name:
allow_partial_search_results -
expandWildcards
The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. It supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final OpenPointInTimeRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. It supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
index
Required - A comma-separated list of index names to open point in time; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds all elements of
listtoindex. -
index
Required - A comma-separated list of index names to open point in time; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds one or more values to
index. -
indexFilter
Filter indices if the provided query rewrites tomatch_noneon every shard.API name:
index_filter -
indexFilter
public final OpenPointInTimeRequest.Builder indexFilter(Function<Query.Builder, ObjectBuilder<Query>> fn) Filter indices if the provided query rewrites tomatch_noneon every shard.API name:
index_filter -
indexFilter
Filter indices if the provided query rewrites tomatch_noneon every shard.API name:
index_filter -
keepAlive
Required - Extend the length of time that the point in time persists.API name:
keep_alive -
keepAlive
public final OpenPointInTimeRequest.Builder keepAlive(Function<Time.Builder, ObjectBuilder<Time>> fn) Required - Extend the length of time that the point in time persists.API name:
keep_alive -
maxConcurrentShardRequests
Maximum number of concurrent shard requests that each sub-search request executes per node.API name:
max_concurrent_shard_requests -
preference
The node or shard the operation should be performed on. By default, it is random.API name:
preference -
projectRouting
Specifies a subset of projects to target for the PIT request using project metadata tags in a subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). Examples: _alias:my-project _alias:_origin _alias:pr Supported in serverless only.API name:
project_routing -
routing
A custom value that is used to route operations to a specific shard.API name:
routing -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<OpenPointInTimeRequest.Builder>
-
build
Builds aOpenPointInTimeRequest.- Specified by:
buildin interfaceObjectBuilder<OpenPointInTimeRequest>- Throws:
NullPointerException- if some of the required fields are null.
-