Class MultisearchHeader.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MultisearchHeader.Builder>
co.elastic.clients.elasticsearch.core.msearch.MultisearchHeader.Builder
- All Implemented Interfaces:
WithJson<MultisearchHeader.Builder>,ObjectBuilder<MultisearchHeader>
- Enclosing class:
- MultisearchHeader
public static class MultisearchHeader.Builder
extends WithJsonObjectBuilderBase<MultisearchHeader.Builder>
implements ObjectBuilder<MultisearchHeader>
Builder for
MultisearchHeader.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowNoIndices(Boolean value) A setting that does two separate checks on the index expression.allowPartialSearchResults(Boolean value) API name:allow_partial_search_resultsbuild()Builds aMultisearchHeader.ccsMinimizeRoundtrips(Boolean value) API name:ccs_minimize_roundtripsexpandWildcards(ExpandWildcard value, ExpandWildcard... values) API name:expand_wildcardsexpandWildcards(List<ExpandWildcard> list) API name:expand_wildcardsignoreThrottled(Boolean value) API name:ignore_throttledignoreUnavailable(Boolean value) Iffalse, the request returns an error if it targets a concrete (non-wildcarded) index, alias, or data stream that is missing, closed, or otherwise unavailable.API name:indexAPI name:indexpreference(String value) API name:preferenceprojectRouting(String value) API name:project_routingrequestCache(Boolean value) API name:request_cacherouteSlice(String value) The slice identifier for routing the search to a specific slice.A custom value used to route operations to a specific shard.A custom value used to route operations to a specific shard.searchType(SearchType value) API name:search_typeprotected MultisearchHeader.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
-
allowNoIndices
A setting that does two separate checks on the index expression. Iffalse, the request returns an error (1) if any wildcard expression (including_alland*) resolves to zero matching indices or (2) if the complete set of resolved indices, aliases or data streams is empty after all expressions are evaluated. Iftrue, index expressions that resolve to no indices are allowed and the request returns an empty result.API name:
allow_no_indices -
expandWildcards
API name:expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final MultisearchHeader.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) API name:expand_wildcardsAdds one or more values to
expandWildcards. -
index
API name:indexAdds all elements of
listtoindex. -
index
API name:indexAdds one or more values to
index. -
preference
API name:preference -
projectRouting
API name:project_routing -
requestCache
API name:request_cache -
routing
A custom value used to route operations to a specific shard. Not allowed whenindex.slice.enabledistruefor the target index; use_sliceinstead.API name:
routingAdds all elements of
listtorouting. -
routing
A custom value used to route operations to a specific shard. Not allowed whenindex.slice.enabledistruefor the target index; use_sliceinstead.API name:
routingAdds one or more values to
routing. -
searchType
API name:search_type -
ccsMinimizeRoundtrips
API name:ccs_minimize_roundtrips -
allowPartialSearchResults
API name:allow_partial_search_results -
ignoreThrottled
API name:ignore_throttled -
routeSlice
The slice identifier for routing the search to a specific slice. Use the special value_allto query all slices without restricting to a routing value. Required whenindex.slice.enabledistruefor the target index; not allowed whenindex.slice.enabledisfalse.API name:
_slice -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<MultisearchHeader.Builder>
-
build
Builds aMultisearchHeader.- Specified by:
buildin interfaceObjectBuilder<MultisearchHeader>- Throws:
NullPointerException- if some of the required fields are null.
-