Hi, I am wondering if when an index template has fields defined that aren't present on the data being inserted into an index (none of the data has the field present), will those fields still exist on the index? Or will they only be created when the data contains the field?
The index template is applied at creation time of the index, whatever data will be inserted later.
If you are speaking about dynamic templates, that's then another question. Indeed the fields are created only when one document is adding a field that matches the dynamic template.
Note that a dynamic template can be defined in an index template.
And then I only insert data that has Time_Stamp_A into my_index-A, that index won't contain Time_Stamp_B? (Until I insert data that has a Time_Stamp_B field)
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.