Class MgetRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.core.MgetRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
Allows to get multiple documents in one request.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MgetRequest> Json deserializer forMgetRequeststatic final SimpleEndpoint<MgetRequest, ?> Endpoint "mget". -
Method Summary
Modifier and TypeMethodDescriptionstatic <TDocument>
Endpoint<MgetRequest, MgetResponse<TDocument>, ErrorResponse> createMgetEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "mget" endpoint.final List<MultiGetOperation> docs()API name:docsids()API name:idsfinal Stringindex()The name of the indexstatic MgetRequestfinal StringSpecify the node or shard the operation should be performed on (default: random)final Booleanrealtime()Specify whether to perform the operation in realtime or search modefinal Booleanrefresh()Refresh the shard containing the document before performing the operationfinal Stringrouting()Specific routing valuevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal SourceConfigParamsource()True or false to return the _source field or not, or a list of fields to returnA list of fields to exclude from the returned _source fieldA list of fields to extract and return from the _source fieldA comma-separated list of stored fields to return in the responseMethods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods 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 forMgetRequest -
_ENDPOINT
Endpoint "mget".
-
-
Method Details
-
of
-
source
True or false to return the _source field or not, or a list of fields to returnAPI name:
_source -
sourceExcludes
A list of fields to exclude from the returned _source fieldAPI name:
_source_excludes -
sourceIncludes
A list of fields to extract and return from the _source fieldAPI name:
_source_includes -
docs
API name:docs -
ids
API name:ids -
index
The name of the indexAPI name:
index -
preference
Specify the node or shard the operation should be performed on (default: random)API name:
preference -
realtime
Specify whether to perform the operation in realtime or search modeAPI name:
realtime -
refresh
Refresh the shard containing the document before performing the operationAPI name:
refresh -
routing
Specific routing valueAPI name:
routing -
storedFields
A comma-separated list of stored fields to return in the responseAPI name:
stored_fields -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
-
setupMgetRequestDeserializer
-
createMgetEndpoint
public static <TDocument> Endpoint<MgetRequest,MgetResponse<TDocument>, createMgetEndpointErrorResponse> (JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "mget" endpoint.
-