I need to remove a field in all the documents indexed to Elasticsearch. How can I do it?
Remove a field from a Elasticsearch document
elasticsearch
elasticsearch
I need to remove a field in all the documents indexed to Elasticsearch. How can I do it?
Best Answer
What @backtrack told is true , but then there is a very convenient way of doing this in Elasticsearch. Elasticsearch will abstract out the internal complexity of the deletion. You need to use update API to achieve this -
You can find more documentation here.
Note: As of Elastic Search 6 you are required to include a content-type header: