Just saw this. Maybe I am doing something wrong, or could be a
possible bug with dynamic templates. Code to reproduce is at git@github.com:diptamay/es-issue.git. ES version is latest trunk.
Scenario:
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
below)
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
"video" type.
b) You will see the templates did not kick in for the "lineup"
type. Note: multiple templates have been provided for lineup in the
seed.
Just saw this. Maybe I am doing something wrong, or could be a
possible bug with dynamic templates. Code to reproduce is at git@github.com:diptamay/es-issue.git. ES version is latest trunk.
Scenario:
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
below)
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
"video" type.
b) You will see the templates did not kick in for the "lineup"
type. Note: multiple templates have been provided for lineup in the
seed.
Just saw this. Maybe I am doing something wrong, or could be a
possible bug with dynamic templates. Code to reproduce is at g...@github.com:diptamay/es-issue.git. ES version is latest trunk.
Scenario:
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
below)
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
"video" type.
b) You will see the templates did not kick in for the "lineup"
type. Note: multiple templates have been provided for lineup in the
seed.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.