Adding a field to all documents


(Henri) #1

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


(Mark Walkom) #2

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


(system) #3

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