是的,您可以在创建索引时使用以下动态模板来做到这一点:
PUT my_index{ "mappings": { "my_type": { "dynamic_templates": [ { "nested": { "match_mapping_type": "object", "mapping": { "type": "nested" } } } ] } }}
是的,您可以在创建索引时使用以下动态模板来做到这一点:
PUT my_index{ "mappings": { "my_type": { "dynamic_templates": [ { "nested": { "match_mapping_type": "object", "mapping": { "type": "nested" } } } ] } }}