目录

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
上次更新: 2024-01-03, 13:22:13
最近更新
01
2023年度总结
01-03
02
MongoDB的简单的常用语法
12-11
03
cetnos7通过nfs共享磁盘文件
11-24
更多文章>