Relative precedence of object field templates vs. value field templates is not always taken into account
Description
Hibernate Search stores object field templates in a structure that is separate from field templates. As a result, it has to go through one structure or the other when applying templates, so it ends up giving more precendence to either value fields or object fields.
That's not how we documented the precedence of field templates, and that's not how it works in Elasticsearch, either.
We should go through templates in the order they were declared.
Hibernate Search stores object field templates in a structure that is separate from field templates. As a result, it has to go through one structure or the other when applying templates, so it ends up giving more precendence to either value fields or object fields.
That's not how we documented the precedence of field templates, and that's not how it works in Elasticsearch, either.
We should go through templates in the order they were declared.