In the past you specified inline scripts with inline, for ex: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/modules-scripting-using.html Seems it's been changed and now it's with source and id: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-using.html