java.lang.Object
co.elastic.clients.elasticsearch.ingest.simulate.Document
All Implemented Interfaces:
JsonpSerializable

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

  • Method Details

    • of

    • id

      @Nullable public final String id()
      Unique identifier for the document. This ID must be unique within the _index.

      API name: _id

    • index

      @Nullable public final String index()
      Name of the index containing the document.

      API name: _index

    • source

      public final JsonData source()
      Required - JSON body for the document.

      API name: _source

    • 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
    • setupDocumentDeserializer

      protected static void setupDocumentDeserializer(ObjectDeserializer<Document.Builder> op)