showing results for - "elasticsearch reindex and rename field"
Issac
09 Jan 2019
1POST _reindex
2{
3  "source": {
4    "index": "products-2018.04.05"
5  },
6  "dest": {
7    "index": "products-reindex-2018.04.05"
8  },
9  "script": {
10    "inline": """ctx._source['PRODUCT.RPT.VALUEAVG'] = ctx._source.remove("PRODUCT.RPT.VALUE.AVG")"""
11  }
12}
13