当前位置:网站首页>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
边栏推荐
- Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
- 腾讯邱东洋:深度模型推理加速的术与道
- Fundamentals of programming language (2)
- selenium. common. exceptions. WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
- How about CICC fortune? Is it safe to open an account
- SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明
- Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64
- MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
- The second method of file upload in form form is implemented by fileitem class, servletfileupload class and diskfileitemfactory class.
- 山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(六)
猜你喜欢

Leetcode XOR operation

Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (6)

PCL点云处理之计算两平面交线(五十一)

【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码

Openharmony open source developer growth plan, looking for new open source forces that change the world!

CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测

Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127

山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)

Comment créer un pass BEP - 20 sur la chaîne BNB

DNS cloud school rising posture! Three advanced uses of authoritative DNS
随机推荐
Unity 模型整体更改材质
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased
SRS 的部署
論文寫作 19: 會議論文與期刊論文的區別
Five minutes to show you what JWT is
波场DAO新物种下场,USDD如何破局稳定币市场?
Numpy mathematical function & logical function
nc基础用法1
Azkaban recompile, solve: could not connect to SMTP host: SMTP 163.com, port: 465 [January 10, 2022]
Numpy Index & slice & iteration
如何在BNB鏈上創建BEP-20通證
What is the difference between a host and a server?
R language uses econocrats package to create microeconomic or macroeconomic map, visualize indifference function indifference curve, customize calculation intersection, and customize the parameters of
2022 - Data Warehouse - [time dimension table] - year, week and holiday
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (6)
. Ren -- the intimate artifact in the field of vertical Recruitment!
DTMF dual tone multi frequency signal simulation demonstration system
SIGIR'22 "Microsoft" CTR estimation: using context information to promote feature representation learning
程序设计语言基础(2)