forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] Add
indices.query.bool.max_clause_count
setting (elastic#34779)
This change adds a section about the global search setting `indices.query.bool.max_clause_count` that limits the number of boolean clauses allowed in a Lucene BooleanQuery. Closes elastic#19858
- Loading branch information
Christoph Büscher
authored
Oct 25, 2018
1 parent
3225b2d
commit c0c6a28
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[[search-settings]] | ||
=== Search Settings | ||
|
||
The following _expert_ setting can be set to manage global search limits. | ||
|
||
`indices.query.bool.max_clause_count`:: | ||
Defaults to `1024`. | ||
|
||
This setting limits the number of clauses a Lucene BooleanQuery can have. The | ||
default of 1024 is quite high and should normally be sufficient. This limit does | ||
not only affect Elasticsearchs `bool` query, but many other queries are rewritten to Lucene's | ||
BooleanQuery internally. The limit is in place to prevent searches from becoming to large | ||
and taking up too much CPU and memory. In case you consider to increase this setting, | ||
make sure you exhausted all other options to avoid having to do this. Higher values can lead | ||
to performance degradations and memory issues, especially in clusters with a high load or | ||
few resources. |