Closed
Description
I am trying to merge few small indices into one bigger. It looks like comma-separated list is not supported, contrary to docs. Tested on Elasticsearch 7.5.1.
According to https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html page
index
(Required, string) The name of the index you are copying from. Also accepts a comma-separated list of indices to reindex from multiple sources.
So I tried comma separated list:
POST /_reindex?pretty
{"conflicts": "proceed",
"source": {
"index": "sfx-pb-1.3.0-2020.03.02,sfx-pb-1.3.0-2020.03.03"
},
"dest": {"index": "sfx-pb-1.3.0-2020.03", "op_type": "create"}}
(both indexes mentioned in source exist what GET /sfx-pb-1.3.0-2020.03.02,sfx-pb-1.3.0-2020.03.03
gladly confirmed).
Result:
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [sfx-pb-1.3.0-2020.03.02,sfx-pb-1.3.0-2020.03.03]",
"resource.type" : "index_or_alias",
"resource.id" : "sfx-pb-1.3.0-2020.03.02,sfx-pb-1.3.0-2020.03.03",
"index_uuid" : "_na_",
"index" : "sfx-pb-1.3.0-2020.03.02,sfx-pb-1.3.0-2020.03.03"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [sfx-pb-1.3.0-2020.03.02,sfx-pb-1.3.0-2020.03.03]",
"resource.type" : "index_or_alias",
"resource.id" : "sfx-pb-1.3.0-2020.03.02,sfx-pb-1.3.0-2020.03.03",
"index_uuid" : "_na_",
"index" : "sfx-pb-1.3.0-2020.03.02,sfx-pb-1.3.0-2020.03.03"
},
"status" : 404
}