Enabling regex support on AWS Managed ElasticSearch in painless scripts
I am trying to upload templates to my AWS managed ElasticSearch. ElasticSearch responds with a 500 error complaining that I need to set script.painless.regex.enabled to true . I know that you cannot edit the elasticsearch.yml file directly, but is there anyway to allow for support of regex in painless scripts on AWS managed ES? There is no way yet to use regex under AWS ES cluster. You can try to use StringTokenizer, as following example: example value: doc['your_str_field.keyword'].value = '{"xxx":"123213","yyy":"123213","zzz":"123213"}' Painless script: { "script": { "lang": "painless",