当前位置:网站首页>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
边栏推荐
- Mysql database - single table query (I)
- How to protect ECs from hacker attacks?
- R语言使用timeROC包计算无竞争风险情况下的生存资料多时间AUC值、使用confint函数计算无竞争风险情况下的生存资料多时间AUC指标的置信区间值
- Comment créer un pass BEP - 20 sur la chaîne BNB
- Sqoop imports data from Mysql to HDFS using lzop compression format and reports NullPointerException
- SIGIR'22「微软」CTR估计:利用上下文信息促进特征表征学习
- Investigate why close is required after sqlsession is used in mybatties
- Compact CUDA tutorial - CUDA driver API
- 【目标跟踪】基于帧差法结合卡尔曼滤波实现行人姿态识别附matlab代码
- STM32基础知识
猜你喜欢
Livego + ffmpeg + RTMP + flvjs to realize live video
Handwritten Google's first generation distributed computing framework MapReduce
Wave field Dao new species end up, how does usdd break the situation and stabilize the currency market?
Mysql database backup scheme
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
Numpy - creation of data type and array
Compact CUDA tutorial - CUDA driver API
波场DAO新物种下场,USDD如何破局稳定币市场?
Understanding various team patterns in scrum patterns
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
随机推荐
NC basic usage 2
R语言使用caret包的preProcess函数进行数据预处理:对所有的数据列进行BoxCox变换处理(将非正态分布数据列转换为正态分布数据、不可以处理负数)、设置method参数为BoxCox
Numpy Index & slice & iteration
R语言survival包coxph函数构建cox回归模型、ggrisk包ggrisk函数和two_scatter函数可视化Cox回归的风险评分图、解读风险评分图、基于LIRI数据集(基因数据集)
[problem solving] 'ASCII' codec can't encode characters in position XX XX: ordinal not in range (128)
Mysql database - single table query (III)
[2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
Record: call mapper to report null pointer Foreach > the usage of not removing repetition;
MySQL advanced lock - overview of MySQL locks and classification of MySQL locks: global lock (data backup), table level lock (table shared read lock, table exclusive write lock, metadata lock and inte
Unity 模型整体更改材质
selenium. common. exceptions. WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
Mysql database - basic operation of database and table (II)
Five minutes to show you what JWT is
Cadence Orcad Capture CIS更换元器件之Link Database 功能介绍图文教程及视频演示
Grafana shares links with variable parameters
STM32基础知识
. Ren -- the intimate artifact in the field of vertical Recruitment!
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
STM32 Basics
基于pytorch搭建GoogleNet神经网络用于花类识别