Class MultiGetOperation

java.lang.Object
co.elastic.clients.elasticsearch.core.mget.MultiGetOperation
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class MultiGetOperation extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • id

      public final String id()
      Required - The unique document ID.

      API name: _id

    • index

      @Nullable public final String index()
      The index that contains the document.

      API name: _index

    • routing

      @Nullable public final String routing()
      The key for the primary shard the document resides on. Required if routing is used during indexing.

      API name: routing

    • source

      @Nullable public final SourceConfig source()
      If false, excludes all _source fields.

      API name: _source

    • storedFields

      public final List<String> storedFields()
      The stored fields you want to retrieve.

      API name: stored_fields

    • version

      @Nullable public final Long version()
      API name: version
    • versionType

      @Nullable public final VersionType versionType()
      API name: version_type
    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupMultiGetOperationDeserializer

      protected static void setupMultiGetOperationDeserializer(ObjectDeserializer<MultiGetOperation.Builder> op)