Adding a field to all documents

Hi I have an index of 10 millions documents but I notice that I need a new field for each doc. The question is How can I batch update the all documents where this field doesn't exist?

The idea is to check if the field exist and if not add it to the doc

Thanks for your help

https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-update.html should do what you want!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.