Class Destination
java.lang.Object
co.elastic.clients.elasticsearch.core.reindex.Destination
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Destination>Json deserializer forDestination -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringindex()Required - The name of the data stream, index, or index alias you are copying to.static Destinationfinal OpTypeopType()If it iscreate, the operation will only index documents that do not already exist (also known as "put if absent").final Stringpipeline()The name of the pipeline to use.final Stringrouting()By default, a document's routing is preserved unless it's changed by the script.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final VersionTypeThe versioning to use for the indexing operation.
-
Field Details
-
_DESERIALIZER
Json deserializer forDestination
-
-
Method Details
-
of
-
index
Required - The name of the data stream, index, or index alias you are copying to.API name:
index -
opType
If it iscreate, the operation will only index documents that do not already exist (also known as "put if absent").IMPORTANT: To reindex to a data stream destination, this argument must be
create.API name:
op_type -
pipeline
The name of the pipeline to use.API name:
pipeline -
routing
By default, a document's routing is preserved unless it's changed by the script. If it iskeep, the routing on the bulk request sent for each match is set to the routing on the match. If it isdiscard, the routing on the bulk request sent for each match is set tonull. If it is=value, the routing on the bulk request sent for each match is set to all value specified after the equals sign (=).API name:
routing -
versionType
The versioning to use for the indexing operation.API name:
version_type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDestinationDeserializer
-