Class SearchTemplateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<SearchTemplateRequest.Builder>
co.elastic.clients.elasticsearch.core.SearchTemplateRequest.Builder
- All Implemented Interfaces:
WithJson<SearchTemplateRequest.Builder>,ObjectBuilder<SearchTemplateRequest>
- Enclosing class:
- SearchTemplateRequest
public static class SearchTemplateRequest.Builder
extends RequestBase.AbstractBuilder<SearchTemplateRequest.Builder>
implements ObjectBuilder<SearchTemplateRequest>
Builder for
SearchTemplateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowNoIndices(Boolean value) Whether to ignore if a wildcard indices expression resolves into no concrete indices.build()Builds aSearchTemplateRequest.ccsMinimizeRoundtrips(Boolean value) Indicates whether network round-trips should be minimized as part of cross-cluster search requests executionexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indices that are open, closed or both.expandWildcards(List<ExpandWildcard> list) Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:explainID of the search template to use.ignoreThrottled(Boolean value) Whether specified concrete, expanded or aliased indices should be ignored when throttledignoreUnavailable(Boolean value) Whether specified concrete indices should be ignored when unavailable (missing or closed)Comma-separated list of data streams, indices, and aliases to search.Comma-separated list of data streams, indices, and aliases to search.API name:paramsAPI name:paramspreference(String value) Specify the node or shard the operation should be performed on (default: random)API name:profileCustom value used to route operations to a specific shard.Specifies how long a consistent view of the index should be maintained for scrolled search.Specifies how long a consistent view of the index should be maintained for scrolled search.searchType(SearchType value) The type of the search operation.protected SearchTemplateRequest.Builderself()An inline search template.A comma-separated list of document types to search; leave empty to perform the operation on all typesA comma-separated list of document types to search; leave empty to perform the operation on all typesMethods 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
-
allowNoIndices
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_allstring or when no indices have been specified)API name:
allow_no_indices -
ccsMinimizeRoundtrips
Indicates whether network round-trips should be minimized as part of cross-cluster search requests executionAPI name:
ccs_minimize_roundtrips -
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final SearchTemplateRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
explain
API name:explain -
id
ID of the search template to use. If no source is specified, this parameter is required.API name:
id -
ignoreThrottled
Whether specified concrete, expanded or aliased indices should be ignored when throttledAPI name:
ignore_throttled -
index
Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (*).API name:
indexAdds all elements of
listtoindex. -
index
Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (*).API name:
indexAdds one or more values to
index. -
params
API name:paramsAdds all entries of
maptoparams. -
params
API name:paramsAdds an entry to
params. -
preference
Specify the node or shard the operation should be performed on (default: random)API name:
preference -
profile
API name:profile -
routing
Custom value used to route operations to a specific shard.API name:
routing -
scroll
Specifies how long a consistent view of the index should be maintained for scrolled search.API name:
scroll -
scroll
Specifies how long a consistent view of the index should be maintained for scrolled search.API name:
scroll -
searchType
The type of the search operation.API name:
search_type -
source
An inline search template. Supports the same parameters as the search API's request body. Also supports Mustache variables. If no id is specified, this parameter is required.API name:
source -
type
A comma-separated list of document types to search; leave empty to perform the operation on all typesAPI name:
typeAdds all elements of
listtotype. -
type
A comma-separated list of document types to search; leave empty to perform the operation on all typesAPI name:
typeAdds one or more values to
type. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<SearchTemplateRequest.Builder>
-
build
Builds aSearchTemplateRequest.- Specified by:
buildin interfaceObjectBuilder<SearchTemplateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-