Class MultisearchHeader
java.lang.Object
co.elastic.clients.elasticsearch.core.msearch.MultisearchHeader
- All Implemented Interfaces:
JsonpSerializable
Contains parameters used to limit or change the subsequent search body
request.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MultisearchHeader>Json deserializer forMultisearchHeader -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanA setting that does two separate checks on the index expression.final BooleanAPI name:allow_partial_search_resultsfinal BooleanAPI name:ccs_minimize_roundtripsfinal List<ExpandWildcard>API name:expand_wildcardsfinal BooleanAPI name:ignore_throttledfinal BooleanIffalse, the request returns an error if it targets a concrete (non-wildcarded) index, alias, or data stream that is missing, closed, or otherwise unavailable.index()API name:indexstatic MultisearchHeaderfinal StringAPI name:preferencefinal StringAPI name:project_routingrebuild()final BooleanAPI name:request_cacherouting()API name:routingfinal SearchTypeAPI name:search_typevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forMultisearchHeader
-
-
Method Details
-
of
public static MultisearchHeader of(Function<MultisearchHeader.Builder, ObjectBuilder<MultisearchHeader>> fn) -
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_wildcards -
index
API name:index -
preference
API name:preference -
projectRouting
API name:project_routing -
requestCache
API name:request_cache -
routing
API name:routing -
searchType
API name:search_type -
ccsMinimizeRoundtrips
API name:ccs_minimize_roundtrips -
allowPartialSearchResults
API name:allow_partial_search_results -
ignoreThrottled
API name:ignore_throttled -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
MultisearchHeader.Builderinitialized with field values of this instance
-
setupMultisearchHeaderDeserializer
protected static void setupMultisearchHeaderDeserializer(ObjectDeserializer<MultisearchHeader.Builder> op)
-