Class MultisearchBody
java.lang.Object
org.opensearch.client.opensearch.core.msearch.MultisearchBody
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MultisearchBody> Json deserializer forMultisearchBody -
Method Summary
Modifier and TypeMethodDescriptionfinal Map<String, Aggregation> API name:aggregationsfinal FieldCollapsecollapse()API name:collapsefinal List<FieldAndFormat> Array of wildcard (*) patterns.final Booleanexplain()If true, returns detailed information about score computation as part of a hit.ext()API name:extfinal List<FieldAndFormat> fields()Array of wildcard (*) patterns.final Integerfrom()API name:fromfinal HighlightAPI name:highlightBoosts the _score of documents from specified indices.final DoubleminScore()API name:fromstatic MultisearchBodyfinal QueryAPI name:post_filterfinal Queryquery()API name:queryrescore()API name:rescorefinal Map<String, ScriptField> final List<FieldValue> API name:search_afterfinal BooleanIf true, returns sequence number and primary term of the last modification of each hit.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()API name:sizefinal List<SortOptions> sort()API name:sortfinal SourceConfigsource()API name:_sourceList of stored fields to return as part of a hit.final Suggestersuggest()API name:suggestfinal Stringtimeout()Specifies the period of time to wait for a response from each shard.final BooleanAPI name:track_scoresfinal TrackHitsAPI name:track_total_hitsfinal Booleanversion()If true, returns document version as part of a hit.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
Json deserializer forMultisearchBody
-
-
Method Details
-
of
public static MultisearchBody of(Function<MultisearchBody.Builder, ObjectBuilder<MultisearchBody>> fn) -
aggregations
API name:aggregations -
query
API name:query -
from
API name:from -
minScore
API name:from -
postFilter
API name:post_filter -
searchAfter
API name:search_after -
size
API name:size -
sort
API name:sort -
trackScores
API name:track_scores -
trackTotalHits
API name:track_total_hits -
suggest
API name:suggest -
highlight
API name:highlight -
source
API name:_source -
scriptFields
-
seqNoPrimaryTerm
If true, returns sequence number and primary term of the last modification of each hit. See Optimistic concurrency control.API name:
seq_no_primary_term -
storedFields
List of stored fields to return as part of a hit. If no fields are specified, no stored fields are included in the response. If this field is specified, the _source parameter defaults to false. You can pass _source: true to return both source fields and stored fields in the search response.API name:
stored_fields -
explain
If true, returns detailed information about score computation as part of a hit.API name:
explain -
fields
Array of wildcard (*) patterns. The request returns values for field names matching these patterns in the hits.fields property of the response.API name:
fields -
docvalueFields
Array of wildcard (*) patterns. The request returns doc values for field names matching these patterns in the hits.fields property of the response.API name:
docvalue_fields -
indicesBoost
Boosts the _score of documents from specified indices.API name:
indices_boost -
collapse
API name:collapse -
version
If true, returns document version as part of a hit.API name:
version -
timeout
Specifies the period of time to wait for a response from each shard. If no response is received before the timeout expires, the request fails and returns an error. Defaults to no timeout.API name:
timeout -
rescore
API name:rescore -
ext
API name:ext -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupMultisearchBodyDeserializer
protected static void setupMultisearchBodyDeserializer(ObjectDeserializer<MultisearchBody.Builder> op)
-