In ES, how to use templates for all fields under a field, and not for fields outside the field.

now is a scenario where there are 50 fields under field A, and these fields are of the same type as the parser. You don"t want to specify one by one manually. You want to set the template.

but I"m afraid that setting a template will affect all fields, so is there a way to make the template valid only for fields under a certain field?

Mar.19,2021

solved. The template in the index specifies the field with path_match or match, and sets mapping

.
Menu