I want to enable regex for painless script as it is not enabled by default and hence my scripted field is failing to create. I added "script.painless.regex.enabled" under env section of elasticsearch.yaml file (please see below) that I pass into helm install command but it doesn't work, I am not sure this is syntactically correct. To verify if this setting is taken effect, I enter container and explore content of /usr/share/elasticsearch/config/elasticsearch.yml hoping to see "script.painless.regex.enabled" setting there but I don't see it.
Any thoughts on this is very appreciated.
helm install --namespace logging elasticsearch elastic/elasticsearch -f /root/elk/elasticsearch.yaml
imageTag: 7.4.1 replicas: 1 esJavaOpts: "-Xmx256m -Xms256m" resources: requests: cpu: "100m" memory: "1G" limits: cpu: "1000m" memory: "1G" env: - name: script.painless.regex.enabled value: "true"