当前位置:网站首页>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
边栏推荐
- DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
- 【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
- Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
- R语言使用timeROC包计算无竞争风险情况下的生存资料多时间AUC值、使用confint函数计算无竞争风险情况下的生存资料多时间AUC指标的置信区间值
- R language ggplot2 visual facet_wrap, and use the lineheight parameter to customize the height of the facet icon tab (gray label bar)
- nc基础用法1
- Zdns was invited to attend the annual conference of Tencent cloud basic resources and share the 2020 domain name industry development report
- Redis installation (centos7 command line installation)
- MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
- Local call feign interface message 404
猜你喜欢
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(七)
Building googlenet neural network based on pytorch for flower recognition
SIGIR'22「微软」CTR估计:利用上下文信息促进特征表征学习
Five minutes to show you what JWT is
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (VII)
Operation of numpy array
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
Leetcode XOR operation
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased
随机推荐
Sqoop imports data from Mysql to HDFS using lzop compression format and reports NullPointerException
PIP installation package reports an error. Could not find a version that satisfies the requirement pymysql (from versions: none)
Unity general steps for creating a hyper realistic 3D scene
Notes of Tang Shu's grammar class in postgraduate entrance examination English
Grafana shares links with variable parameters
Remote code execution in Win 11 using wpad / PAC and JScript 3
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased
DTMF双音多频信号仿真演示系统
Comment créer un pass BEP - 20 sur la chaîne BNB
Leetcode XOR operation
Alicloud: could not connect to SMTP host: SMTP 163.com, port: 25
Redis的安装(CentOS7命令行安装)
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
Record: call mapper to report null pointer Foreach > the usage of not removing repetition;
Five minutes to show you what JWT is
[numerical prediction case] (3) LSTM time series electricity quantity prediction, with tensorflow complete code attached
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
Wave field Dao new species end up, how does usdd break the situation and stabilize the currency market?
Mysql database backup scheme
JDBC database addition, deletion, query and modification tool class