How to fix ScriptException: compile error in Elasticsearch | DevErrors