I need to remove a field in all the documents indexed to Elasticsearch . How can i do it. Will any of the delete queries help me achieve this.
The previous answers doesn't worked for me.
I had to add the keyword "inline":
POST /my_index/_update_by_query { "script": { "inline": "ctx._source.remove(\"myfield\")" }, "query" : { "exists": { "field": "myfield" } } }