Class Destination
java.lang.Object
co.elastic.clients.elasticsearch.core.reindex.Destination
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<Destination>
Json deserializer forDestination
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
index()
Required - The name of the data stream, index, or index alias you are copying to.static Destination
final OpType
opType()
Set tocreate
to only index documents that do not already exist.final String
pipeline()
The name of the pipeline to use.final String
routing()
By default, a document's routing is preserved unless it’s changed by the script.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
toString()
final VersionType
The 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
Set tocreate
to only index documents that do not already exist. Important: To reindex to a data stream destination, this argument must becreate
.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. Set todiscard
to set routing tonull
, or=value
to route using the specifiedvalue
.API name:
routing
-
versionType
The versioning to use for the indexing operation.API name:
version_type
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDestinationDeserializer
-