Preference in index mapping

If I'm leveraging dynamic template and let's say I have specified a field say abcd to be of type long and in the dynamic template i specify for any field pattern matching ab*, the type should be string, what will ES infer the type as?

More precise definitions will take precedence over things like (wide) wildcards.

So "abcd": long takes precedence over "abc"*: long.
"abc*": long takes precedence over "ab*": long.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.