mallocator / Elasticsearch-Exporter

A small script to export data from one Elasticsearch cluster into another.
Apache License 2.0
593 stars 112 forks source link

Added an option to copy data only and no mapping. #97

Closed dmcqueen closed 9 years ago

mallocator commented 9 years ago

Thanks for the patch. I never considered this requirement. I'll port it to 2.0 as well.

dmcqueen commented 9 years ago

No problem. It's useful for migrating data to a new schema when you want to change field types or indexing options in the mapping.

mallocator commented 9 years ago

For that I added the --mapping option with which you can define whatever mapping you want to have. I figured you can use that to set an empty mapping and not overwrite the existing one, but my thought was that it might be easier for someone to use your added option if they just don't want to touch the mapping and skip that step completely (in v2.0 I can probably also skip the fetch step and make it overall a little faster).

dmcqueen commented 9 years ago

I saw that option but was already defining my mapping earlier in the migration process so just made more sense to do it once.