Skip to content

reindex doesn't accept comma separated values as inputs #51949

Closed
@Mekk

Description

@Mekk

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
}

Metadata

Metadata

Assignees

Labels

:Distributed Indexing/ReindexIssues relating to reindex that are not caused by issues further down>docsGeneral docs changes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions