Class MgetRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch._core.MgetRequest
All Implemented Interfaces:
ElasticsearchCommonRequest, JsonpSerializable

@JsonpDeserializable
public final class MgetRequest
extends RequestBase
implements JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • index

      @Nullable public java.lang.String index()
      The name of the index

      API name: index

    • type

      @Nullable public java.lang.String type()
      The type of the document

      API name: type

    • preference

      @Nullable public java.lang.String preference()
      Specify the node or shard the operation should be performed on (default: random)

      API name: preference

    • realtime

      @Nullable public java.lang.Boolean realtime()
      Specify whether to perform the operation in realtime or search mode

      API name: realtime

    • refresh

      @Nullable public java.lang.Boolean refresh()
      Refresh the shard containing the document before performing the operation

      API name: refresh

    • routing

      @Nullable public java.lang.String routing()
      Specific routing value

      API name: routing

    • source

      @Nullable public jakarta.json.JsonValue source()
      True or false to return the _source field or not, or a list of fields to return

      API name: _source

    • sourceExcludes

      @Nullable public java.util.List<java.lang.String> sourceExcludes()
      A list of fields to exclude from the returned _source field

      API name: _source_excludes

    • sourceIncludes

      @Nullable public java.util.List<java.lang.String> sourceIncludes()
      A list of fields to extract and return from the _source field

      API name: _source_includes

    • storedFields

      @Nullable public java.util.List<java.lang.String> storedFields()
      A comma-separated list of stored fields to return in the response

      API name: stored_fields

    • docs

      @Nullable public java.util.List<Operation> docs()
      API name: docs
    • ids

      @Nullable public java.util.List<java.lang.String> ids()
      API name: ids
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupMgetRequestDeserializer

      protected static void setupMgetRequestDeserializer​(DelegatingDeserializer<MgetRequest.Builder> op)
    • createMgetEndpoint

      public static <TDocument> Endpoint<MgetRequest,​MgetResponse<TDocument>,​ElasticsearchError> createMgetEndpoint​(JsonpDeserializer<TDocument> tDocumentDeserializer)
      Create an "mget" endpoint.