Class Document
java.lang.Object
co.elastic.clients.elasticsearch.ingest.Document
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Document>Json deserializer forDocument -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringid()Unique identifier for the document.final Stringindex()Name of the index containing the document.static Documentvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal JsonDatasource()Required - JSON body for the document.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDocument
-
-
Method Details
-
of
-
id
Unique identifier for the document. This ID must be unique within the_index.API name:
_id -
index
Name of the index containing the document.API name:
_index -
source
Required - JSON body for the document.API name:
_source -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDocumentDeserializer
-