Just saw this. Maybe I am doing something wrong, or could be a
possible bug with dynamic templates. Code to reproduce is at
firstname.lastname@example.org:diptamay/es-issue.git. ES version is latest trunk.
When dynamic templates are defined in seed mappings, they get
correctly applied ONLY when ONE template is define and not when
multiple templates are present.
Steps to setup and reproduce:
- Ensure ES is running at localhost:9200 (look at configuration
- run ./automate.sh.
a) This will create an es-test index with the seed mappings and
load the sample data.
b) Then it fires a query which returns results correctly.
- Now look at the metadata generated by ES.
a) You will see that the dynamic templates got applied for the
b) You will see the templates did not kick in for the "lineup"
type. Note: multiple templates have been provided for lineup in the
Configuration of ES:
snapshot_interval : 30s
number_of_shards : 2
number_of_replicas : 1