Situation after updating Mapping of Elastic

Hi all,
I will explain a situation, please suggest all possible solutions.
Lets say, I create a static mapping(dynamic= false) for two attributes "name" , "surname" and add one million documents(with additional fields like "mail") to Elastic.
Later i update mapping with one more field "email", and start adding users.

Obviously in the first case you cant't search on "email". To do so you have to push those one million objects again.

Is there any better approach, to solve this.

Thanks,
Mohan

Hi,

Can you provide full mapping of the index ?

I may not understand clearly in which state the mapping is.

Did you push 1m docs with the fieldname "mail" and now you just renamed it to "email" so for me in the mappings you have two "mail" field.

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