I have some scanerios of using dynamic template:
-
create a new index and index some records using the default setting
-
apply a new dynamic template on some of existing fields using the
put mapping API
some details about my dynamic template:- type is "multi_field"
- match is some regex
- i.e. very similar to this:
http://www.elasticsearch.org/guide/reference/mapping/root-object-type.html
-> dynamic_templates
a) reindex the existing records and the existing matched fields
don't have the dynamic template applied
b) index some new records and the matched fields still cannot have
the dynamic template applied
c) reindex the records, but just slightly change the field name (but
matched with the dynamic template) and now the fields can have the
dynamic template applied
So, the dynamic template cannot change the existing fields?
Thanks,
Wing