且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Elasticsearch-设置max_clause_count

更新时间:2023-02-18 19:32:14

背景



注意::此答案中的建议仅适用于5.5以下的Elasticsearch版本。所描述的方法引用了最终在5.5中删除的属性。

Background

NOTE: The advice given in this answer only applies to versions of Elasticsearch below 5.5. The method described references a property that was eventually removed in 5.5.


搜索设置



已删除设置 index.query.bool.max_clause_count 。为了使
设置布尔子句的最大数量,应该使用
indices.query.bool.max_clause_count 代替。



index.query.bool.max_clause_count: 10240

到文件 elasticsearch。 yml 在群集的每个节点上,然后当然要重新启动节点(配置文件中的任何更改都需要重新启动)。

To the file elasticsearch.yml on each node of the cluster, then of course, restart the nodes (any change in the config file needs a restart).