Reindex keep mapping

Hi, when i reindex a index the mapping infos of the fields are lost. So my query on the new index are not working. What can i do?

You should define a template for the reindex into the new index.

I do not know how to use templates. Now i first do a new index with the target name and map the fields. Than i run reindex to copy the docs. But this is a long and not very clean way i think ;(

This is the right way to reindex. Why don't you think it's clean? Reindex only takes care of copying the data and relies on mappings being configured. If it was copying the mappings as well, it would make it impossible to change the mappings between the source and destination indices, which is one of the main use-cases for reindexing.

Because it is not a exact copy that i can reuse. I need this to version indexes for a rollback function after importing.

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