reindex
Reindex data from a source Elasticsearch index to a target index, optionally applying a query filter or script transformation for document manipulation.
Instructions
Reindex data from a source index to a target index
Input Schema
Name | Required | Description | Default |
---|---|---|---|
destIndex | Yes | Name of the destination Elasticsearch index | |
query | No | Optional query to filter which documents to reindex | |
script | No | Optional script to transform documents during reindex | |
sourceIndex | Yes | Name of the source Elasticsearch index |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"destIndex": {
"description": "Name of the destination Elasticsearch index",
"minLength": 1,
"type": "string"
},
"query": {
"additionalProperties": {},
"description": "Optional query to filter which documents to reindex",
"type": "object"
},
"script": {
"additionalProperties": {},
"description": "Optional script to transform documents during reindex",
"type": "object"
},
"sourceIndex": {
"description": "Name of the source Elasticsearch index",
"minLength": 1,
"type": "string"
}
},
"required": [
"sourceIndex",
"destIndex"
],
"type": "object"
}