Adding new field to the mapping template

Hi,

From time to time, I need to add a new field to my templates (mostly daily indices). Is there an easy way to apply that to an existing index?

Thank you!

You can apply a new field to your existing index in the mapping first, but still need to do a reindex of each document. You can use the update by query API to reindex every document within its index...

1 Like

Thank you for clarifying this. Could you answer two related question?
If I run update by query, will it affect the size of the index? Also, if the index is actively written, can I run an update on it, or I need to wait until the new one is opened?

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