如題,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"
}
}
}
}
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/262701.html
標籤:Java EE
上一篇:2021-02-23:給定一個正數n,求n的裂開方法數。規定:后面的數不能比前面的數小 。比如4的裂開方法有: 1+1+1+1、1+1+2、1+3、2+2、4,
