是的,您可以在创建索引时使用以下动态模板来实现:
PUT my_index
{
"mappings": {
"my_type": {
"dynamic_templates": [
{
"nested": {
"match_mapping_type": "object",
"mapping": {
"type": "nested"
}
}
}
]
}
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
277 次 |
| 最近记录: |