Multiple path_match within a single dynamic template?


(hari) #1

I have a complex JSON where in #text field appears in multiple paths within
the JSON
I want to use dynamic template to map some of these fields as float and
rest will be string based on the path.

path_match defined within the dynamic template works fine for me, however
should I be defining one template per path pattern?
is there a way to provide multiple paths within a single template?

E.g.
"path_match" : "DataArea.Order.OrderAmount..#text"
"path_match" : "DataArea.Order.OrderPaymentInfo.Amount.
.#text"

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4a504435-1d11-43fd-a2fc-b8f27f85d448%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2