Why does this reindex API fail (Reindex multiple indexes at once)

Hi,
I have 5 Indices on my Elasticsearch and want to reindex all of them. Is there an API which can do this? I tried it with this approach:

{
  "conflicts": "proceed",
  "source": {
    "index": ["index1", "index2","index3","index4","index5"]
  },
  "dest": {
    "index": ["index1_new", "index2_new","index3_new","index4_new","index5_new"],
    "op_type": "create"
  }
}

Hi,

I don't think the reindex API supports a LIST of indices: I think it only supports GLOBs to define the source index (e.g. "source": {"index": "index*"})

Please see this link about how to handle many indices at a time (actually, the advice is to reindex them one at a time).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.