Class Document
java.lang.Object
co.elastic.clients.elasticsearch.ingest.simulate.Document
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<Document>
Json deserializer forDocument
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
id()
Unique identifier for the document.final String
index()
Name of the index containing the document.static Document
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final JsonData
source()
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDocumentDeserializer
-