es索引的mapping中设置excludes,最后存储时并没有省磁盘空间
如题,es索引的mapping中设置excludes,最后存储时并没有省磁盘空间,这是为什么?
索引如下:
{ -
"test1": { -
"mappings": { -
"dynamic": "false",
"_source": { -
"includes": [ -
"serialNo"
],
"excludes": [ -
"code",
"duration",
"ip",
"method",
"project",
"response",
"uri",
"timestamp"
]
},
"properties": { -
"code": { -
"type": "short"
},
"duration": { -
"type": "long"
},
"ip": { -
"type": "keyword"
},
"method": { -
"type": "keyword"
},
"project": { -
"type": "keyword"
},
"response": { -
"type": "text"
},
"serialNo": { -
"type": "keyword"
},
"timestamp": { -
"type": "long"
},
"uri": { -
"type": "keyword"
}
}
}
}
}