Elastic_search-报错汇总
# 字段聚合
注意
Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [] in order to load field data by uninverting the inverted index. Note that this can use significant memory.
# 解决办法
添加fileddata。但是不推荐,占用内存太大。
POST 索引名/_mapping
{
"properties": {
"字段名": {
"type": "text",
"fielddata":true
}
}
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
编辑 (opens new window)
上次更新: 2024-11-06, 19:27:10