java.lang.Object
co.elastic.clients.elasticsearch.core.reindex.Destination
All Implemented Interfaces:
JsonpSerializable

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

  • Method Details

    • of

    • index

      public final String index()
      Required - The name of the data stream, index, or index alias you are copying to.

      API name: index

    • opType

      @Nullable public final OpType opType()
      If it is create, 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

      @Nullable public final String pipeline()
      The name of the pipeline to use.

      API name: pipeline

    • routing

      @Nullable public final String routing()
      By default, a document's routing is preserved unless it's changed by the script. If it is keep, the routing on the bulk request sent for each match is set to the routing on the match. If it is discard, the routing on the bulk request sent for each match is set to null. 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

      @Nullable public final VersionType versionType()
      The versioning to use for the indexing operation.

      API name: version_type

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

      protected static void setupDestinationDeserializer(ObjectDeserializer<Destination.Builder> op)