For example, you need to delete field field.property
from index_a
:
POST index_a/_update_by_query?conflicts=proceed { "script" : "ctx._source.field.remove('property')" }
it’s removed field from all existed document
Now we have to done reindex
operation:
POST _reindex { "source": { "index": "index_a" }, "dest": { "index": "index_b" } }
now new index index_b
documents have no field field.property
.