Class ReindexResponse

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

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

  • Method Details

    • of

    • batches

      @Nullable public final Long batches()
      The number of scroll responses that were pulled back by the reindex.

      API name: batches

    • created

      @Nullable public final Long created()
      The number of documents that were successfully created.

      API name: created

    • deleted

      @Nullable public final Long deleted()
      The number of documents that were successfully deleted.

      API name: deleted

    • failures

      public final List<BulkIndexByScrollFailure> failures()
      If there were any unrecoverable errors during the process, it is an array of those failures. If this array is not empty, the request ended because of those failures. Reindex is implemented using batches and any failure causes the entire process to end but all failures in the current batch are collected into the array. You can use the conflicts option to prevent the reindex from ending on version conflicts.

      API name: failures

    • noops

      @Nullable public final Long noops()
      The number of documents that were ignored because the script used for the reindex returned a noop value for ctx.op.

      API name: noops

    • retries

      @Nullable public final Retries retries()
      The number of retries attempted by reindex.

      API name: retries

    • requestsPerSecond

      @Nullable public final Float requestsPerSecond()
      The number of requests per second effectively run during the reindex.

      API name: requests_per_second

    • sliceId

      @Nullable public final Integer sliceId()
      API name: slice_id
    • task

      @Nullable public final String task()
      API name: task
    • throttledMillis

      @Nullable public final Long throttledMillis()
      The number of milliseconds the request slept to conform to requests_per_second.

      API name: throttled_millis

    • throttledUntilMillis

      @Nullable public final Long throttledUntilMillis()
      This field should always be equal to zero in a reindex response. It has meaning only when using the task API, where it indicates the next time (in milliseconds since epoch) that a throttled request will be run again in order to conform to requests_per_second.

      API name: throttled_until_millis

    • timedOut

      @Nullable public final Boolean timedOut()
      If any of the requests that ran during the reindex timed out, it is true.

      API name: timed_out

    • took

      @Nullable public final Long took()
      The total milliseconds the entire operation took.

      API name: took

    • total

      @Nullable public final Long total()
      The number of documents that were successfully processed.

      API name: total

    • updated

      @Nullable public final Long updated()
      The number of documents that were successfully updated. That is to say, a document with the same ID already existed before the reindex updated it.

      API name: updated

    • versionConflicts

      @Nullable public final Long versionConflicts()
      The number of version conflicts that occurred.

      API name: version_conflicts

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

      protected static void setupReindexResponseDeserializer(ObjectDeserializer<ReindexResponse.Builder> op)