社区
Java
帖子详情
es查询条件没有达到1024,但是搜索的关键字达到46位长的时候就会报错too_many_clauses: maxClauseCount is set to 1
吃饭睡觉不准打豆豆
2019-10-15 08:53:11
Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses: maxClauseCount is set to 1024
...全文
538
2
打赏
收藏
es查询条件没有达到1024,但是搜索的关键字达到46位长的时候就会报错too_many_clauses: maxClauseCount is set to 1
Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses: maxClauseCount is set to 1024
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
吃饭睡觉不准打豆豆
2019-10-16
打赏
举报
回复
我的分词器是ngrm,配置min_grm=1,max_grm=40,发现按照滑动窗口分词法来计算符合上述报错条件,当输入的长度为46的时候会报错,修改min_grm为2,输入长度为47的时候才会报错,跟计算的结果一致,但是有一点不明白报错说的是clause超过了1024,这个1024指的是单个字段还是针对的整个index,计算结果来看是单个字段,但我找不到比价官方的佐证,有人知道吗?
吃饭睡觉不准打豆豆
2019-10-16
打赏
举报
回复
有人知道原因吗?
ERROR >
ES
: too_many_
clause
s:
max
Clause
Count
is
set
to
1024
ES
在
查询
Elasticseach 时,
报错
: too_many_
clause
s:
max
Clause
Count
is
set
to
1024
原因是: 1、
查询
的 bool
查询
条件
过多 2、
查询
的 bool
查询
字符过多 解决方法: 1、拆分 bool
查询
2、在 elasticsearch.yml 中修改限制配置: Elasticsearch 5.0 以下版本: index.query.bool.
max
_
clause
_
count
:
1024
0 Elasticsearch 5.0 以上版本: i
elasticsearch之bool
查询
too_many_
clause
s:
max
Clause
Count
is
set
to
1024
问题
es
中使用bool
查询
时
查询
内容长度太长导致
报错
: caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_
clause
s:
max
Clause
Count
is
set
to
1024
错误信息提示:最大字句数量限制为
1024
解决方案 1.设置
es
配置文件elasticsearch.yml
es
5.x以下: index.query.bool....
解决TDH中
报错
too_many_
clause
s:
max
Clause
Count
is
set
to
1024
概要描述 使用bool
查询
时有时
会
报错
: { "error": {"root_cause": [ {"type":"too_many_
clause
s","reason":"too_many_
clause
s:
max
Clause
Count
is
set
to
1024
"} ], "type":"search_phase_executio...
Docker
ES
问题 : too_many_
clause
s
max
Clause
Count
is
set
to
1024
线上出现
es
报错
: too_many_
clause
s
max
Clause
Count
is
set
to
1024
网上百度的答案很简单,改配置。 由于
ES
是docker安装的,而且配置文件
没有
映射到宿主机,所以想到进入容器内改配置,然后重启容器。 但是解决过程中还是遇到了很多坑,便记录下来。 第一个坑:配置写错,导致重启失败: 网上很多文章都是以下这种配置: index.query.bool.
max
_
clause
_
count
:
1024
0 但是我改了之后,重启容器就悲剧了,一...
ES
查询
too_many_
clause
s,
max
Clause
Count
is
set
to 5000
ES
查询
,因为同义词触发 too_many_
clause
s,
max
Clause
Count
Java
50,523
社区成员
85,601
社区内容
发帖
与我相关
我的任务
Java
Java相关技术讨论
复制链接
扫一扫
分享
社区描述
Java相关技术讨论
java
spring boot
spring cloud
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章