动态映射嵌套结构问题

直接插入一条数据,自动创建索引和mapping:
PUT /my_index/my_type/1
{
"aa.bb": "cc"
}
但是自动创建的mapping却是嵌套的结构:
{
"my_type": {
"properties": {
"aa": {
"properties": {
"bb": {
"type": "text",
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
}
}
}
}
}
}
}
怎么能让它的mapping不是嵌套的?
我希望生成类似这样的:
{
"my_type": {
"properties": {
"aa.bb": {
"type": "keyword"
}
}
}
}

如果是旧版本还能支持,新的版本已经不支持了,详细的文档可参见:

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