Delete field from documents

Hi!
I wonder is it possible delete one field from all documents in index. My ES version is 1.6

In 1.x series, you have to iterate over all docs and update each doc manually or using update API.

I'd suggest to create a 5.0 cluster, use the reindex API with reindex from remote which would read your data from the 1.6 cluster, then use an ingest pipeline in 5.0 which removes the field.

You can also have a look at https://github.com/yakaz/elasticsearch-action-updatebyquery. Dunno how well it works though.

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