POST /your-index/_update_by_query { "script": { "source": "ctx._source.new_field = 'updated value'" }, "query": { "match": { "your_field": "your_value" } } }