mallocator/Elasticsearch-Exporter

Settings and Mappings Not Exported

Closed this issue · 5 comments

When I export data from my development server, the settings (analyzers, specifically) and mappings on my index are not exported.

Hi,

Thanks for the feedback. Can you give me some more detail? I can't do much with this information.

How does your mapping look like? Which fields of that mapping are not exported? What version of ElasticSearch are you using? Is there any exception thrown? What version of Node.js are you using?

The more info you can give me, the better I can help you.

Cheers

Our index settings, and one of the mappings, are at https://gist.github.com/clintonb/6921683.
node: v0.10.18
elasticsearch: 0.90.5

The export goes without error. I only noticed the lack of settings and mappings because our application relies on them.

Can you also tell me which settings/mappings are not exported?

I'm guessing it's mainly filters and analyzers set on the the index level. The exporter only exports type mappings so far and doesn't consider index mappings. Can you confirm this behavior?

Your guesses are correct. When I import the exported indices none of my settings or mappings are present.

Alright, in this case this is a future feature that I will have to implement. Unfortunately I'm currently a bit swamped with other projects, so I don't know when I'll get to it, but I can offer you a temporary solution for the meantime:

If you create your target index before running the import with all the settings of your source index, the import should work, as the operations done by the exporter are non destructive. You might get a warning if the mapping is not compatible, but the import should run nonetheless.

I hope that helps.