当前位置:网站首页>Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
2022-04-23 20:17:00 【smile-yan】
Problem description
In the use of java To write ES When querying the interface , You need to sort according to a keyword and return data , However, the errors reported during sorting are as follows :
ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]
]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Fielddata is disabled on text fields by default. Set fielddata=true on [subTaskId] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Fielddata is disabled on text fields by default. Set fielddata=true on [subTaskId] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.]];
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)
at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1793)
at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1769)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1606)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1563)
resolvent
Use Google's Elastic Search Head plug-in unit , Then execute the following command :
{
"properties": {
"subTaskId": {
"type": "text",
"fielddata": true
}
}
}
Then click on the Request
.
summary
The problem is small , But it's also very annoying .
Smileyan
2021.11.19 17:37
版权声明
本文为[smile-yan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210553133479.html
边栏推荐
- R language uses timeroc package to calculate the multi time AUC value of survival data under competitive risk, uses Cox model and adds covariates, and R language uses the plotauccurve function of time
- The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
- 【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
- nc基础用法2
- R语言survival包coxph函数构建cox回归模型、ggrisk包ggrisk函数和two_scatter函数可视化Cox回归的风险评分图、解读风险评分图、基于LIRI数据集(基因数据集)
- How to do product innovation—— Exploration of product innovation methodology I
- DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
- An error is reported in the initialization metadata of the dolphin scheduler -- it turns out that there is a special symbol in the password. "$“
- Database query - course selection system
- NC basic usage 4
猜你喜欢
[numerical prediction case] (3) LSTM time series electricity quantity prediction, with tensorflow complete code attached
Software College of Shandong University Project Training - Innovation Training - network security shooting range experimental platform (8)
Computing the intersection of two planes in PCL point cloud processing (51)
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased
SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明
Mysql database backup scheme
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
Livego + ffmpeg + RTMP + flvjs to realize live video
Leetcode XOR operation
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
随机推荐
腾讯邱东洋:深度模型推理加速的术与道
Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
Mysql database - single table query (II)
Still using listview? Use animatedlist to make list elements move
LeetCode异或运算
Operation of numpy array
SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明
R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线、自定义计算交叉点、自定义配置indifference函数的参数丰富可视化效果
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
How to do product innovation—— Exploration of product innovation methodology I
Introduction to electron Tutorial 4 - switching application topics
SRS deployment
Servlet learning notes
[numerical prediction case] (3) LSTM time series electricity quantity prediction, with tensorflow complete code attached
Grafana shares links with variable parameters
Design of library management database system
How does onlyoffice solve no route to host
SIGIR'22 "Microsoft" CTR estimation: using context information to promote feature representation learning
Mysql database - single table query (I)