Multiple path_match within a single dynamic template?

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?

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

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
To view this discussion on the web visit
For more options, visit

1 Like