Cannot start field with “0”

003 and 222 are keyword type。

Field names that start with 0 will clash with the way painless parses map keys. You might have better luck by switching to map[key] syntax for that:

  "script": {
    "lang": "painless",
    "source": "ctx._source['003'] = params['003']",
    "params": {
      "003": "33"

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