Answers for "elasticsearch reindex and rename field"

0

elasticsearch reindex and rename field

POST _reindex
{
  "source": {
    "index": "products-2018.04.05"
  },
  "dest": {
    "index": "products-reindex-2018.04.05"
  },
  "script": {
    "inline": """ctx._source['PRODUCT.RPT.VALUEAVG'] = ctx._source.remove("PRODUCT.RPT.VALUE.AVG")"""
  }
}
Posted by: Guest on May-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language