These are actually several questions disguised as one. Nevertheless:
How to save elasticsearch + mapping settings in a single file (e.g. schema.xml for Solr)?
First, note that you do not need to specify a mapping for many types, such as dates, integers, or even strings (when the analyzer is right for you by default).
You can save settings and mappings in various ways, in ElasticSearch < 1.7 :
Currently, when I want to make changes to my mapping, I need to remove the index settings and start over. Did I miss something?
You need to reindex the data when you change the display for an existing field. Once your documents are indexed, the engine must reindex them in order to use the new mapping.
Please note that you can update index parameters in certain cases, for example number_of_replicas , on the fly.
I would like to be able to change the settings, and some like reindex, without starting completely fresh every time. Is this possible, and if so, how?
As said: you have to reindex your documents if you want to use a completely new mapping for them.
If you add, but do not change the mapping, you can update the mapping, and new documents will pick it up when indexing.
karmi
source share