ElasticSearch - How to merge indexes into one index? -


my cluster has index each day since few months ago, 5 shards each index (the default), , can't run queries on whole cluster because there many shards (over 1000).

the document ids automatically generated.

how can combine indexes 1 index, deal conflicting ids (if conflicts possible), , change types?

i using es version 5.2.1

you can use reindex api.

post _reindex {  "conflicts": "proceed",  "source": {    "index": ["twitter", "blog"],    "type": ["tweet", "post"]   },   "dest": {   "index": "all_together"  } } 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -