Skip to content

Commit a5d916c

Browse files
Remove 4096 bool query max limit from docs (#111421) (#111423)
indices.query.bool.max_clause_count is set automatically and does not default to 4096 as before. This remove mentions of 4096 from query documentations. Relates to PR#91811
1 parent 1fad334 commit a5d916c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/reference/query-dsl/query-string-query.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you don't need to support a query syntax, consider using the
3030
syntax, use the <<query-dsl-simple-query-string-query,`simple_query_string`>>
3131
query, which is less strict.
3232
====
33-
33+
3434

3535
[[query-string-query-ex-request]]
3636
==== Example request
@@ -83,7 +83,7 @@ could be expensive.
8383
8484
There is a limit on the number of fields times terms that can be queried at once.
8585
It is defined by the `indices.query.bool.max_clause_count`
86-
<<search-settings,search setting>>, which defaults to 4096.
86+
<<search-settings,search setting>>.
8787
====
8888
--
8989

docs/reference/query-dsl/span-multi-term-query.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ GET /_search
3939
--------------------------------------------------
4040

4141
WARNING: `span_multi` queries will hit too many clauses failure if the number of terms that match the query exceeds the
42-
boolean query limit (defaults to 4096).To avoid an unbounded expansion you can set the <<query-dsl-multi-term-rewrite,
42+
`indices.query.bool.max_clause_count` <<search-settings,search setting>>.
43+
To avoid an unbounded expansion you can set the <<query-dsl-multi-term-rewrite,
4344
rewrite method>> of the multi term query to `top_terms_*` rewrite. Or, if you use `span_multi` on `prefix` query only,
4445
you can activate the <<index-prefixes,`index_prefixes`>> field option of the `text` field instead. This will
4546
rewrite any prefix query on the field to a single term query that matches the indexed prefix.

0 commit comments

Comments
 (0)