{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-types-reindex-status-schema.json",
  "title": "_types.ReindexStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-document-api-openapi.yml#/components/schemas/_types.ReindexStatus",
  "type": "object",
  "properties": {
    "slice_id": {
      "description": "The slice ID",
      "type": "number"
    },
    "batches": {
      "description": "The number of scroll responses pulled back by the reindex.",
      "type": "number"
    },
    "created": {
      "description": "The number of documents that were successfully created.",
      "type": "number"
    },
    "deleted": {
      "description": "The number of documents that were successfully deleted.",
      "type": "number"
    },
    "noops": {
      "description": "The number of documents that were ignored because the script used for the reindex returned a `noop` value for `ctx.op`.",
      "type": "number"
    },
    "requests_per_second": {
      "description": "The number of requests per second effectively executed during the reindex.",
      "type": "number"
    },
    "retries": {
      "description": "The number of retries attempted by reindex. `bulk` is the number of bulk actions retried and `search` is the number of search actions retried.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.Retries"
        }
      ]
    },
    "throttled": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.Duration"
        }
      ]
    },
    "throttled_millis": {
      "description": "Number of milliseconds the request slept to conform to `requests_per_second`.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.DurationValueUnitMillis"
        }
      ]
    },
    "throttled_until": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.Duration"
        }
      ]
    },
    "throttled_until_millis": {
      "description": "This field should always be equal to zero in a `_reindex` response.\nIt only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform to `requests_per_second`.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.DurationValueUnitMillis"
        }
      ]
    },
    "total": {
      "description": "The number of documents that were successfully processed.",
      "type": "number"
    },
    "updated": {
      "description": "The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it.",
      "type": "number"
    },
    "version_conflicts": {
      "description": "The number of version conflicts that reindex hits.",
      "type": "number"
    },
    "cancelled": {
      "description": "The reason for cancellation if the slice was canceled",
      "type": "string"
    }
  },
  "required": [
    "batches",
    "deleted",
    "noops",
    "requests_per_second",
    "retries",
    "throttled_millis",
    "throttled_until_millis",
    "total",
    "version_conflicts"
  ],
  "$defs": {
    "_types.Duration": {
      "description": "A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and\n`d` (days). Also accepts \"0\" without a unit and \"-1\" to indicate an unspecified value.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "-1"
          ]
        },
        {
          "type": "string",
          "enum": [
            "0"
          ]
        }
      ]
    },
    "_types.DurationValueUnitMillis": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.UnitMillis"
        }
      ]
    },
    "_types.Retries": {
      "type": "object",
      "properties": {
        "bulk": {
          "description": "The number of bulk actions retried.",
          "type": "number"
        },
        "search": {
          "description": "The number of search actions retried.",
          "type": "number"
        }
      },
      "required": [
        "bulk",
        "search"
      ]
    },
    "_types.UnitMillis": {
      "description": "Time unit for milliseconds",
      "type": "number"
    }
  }
}