search-settings.asciidoc 810 B

12345678910111213141516
  1. [[search-settings]]
  2. === Search Settings
  3. The following _expert_ setting can be set to manage global search limits.
  4. `indices.query.bool.max_clause_count`::
  5. Defaults to `1024`.
  6. This setting limits the number of clauses a Lucene BooleanQuery can have. The
  7. default of 1024 is quite high and should normally be sufficient. This limit does
  8. not only affect Elasticsearchs `bool` query, but many other queries are rewritten to Lucene's
  9. BooleanQuery internally. The limit is in place to prevent searches from becoming to large
  10. and taking up too much CPU and memory. In case you consider to increase this setting,
  11. make sure you exhausted all other options to avoid having to do this. Higher values can lead
  12. to performance degradations and memory issues, especially in clusters with a high load or
  13. few resources.