Skip to content

Commit 882f5e9

Browse files
author
Christoph Büscher
committed
[Docs] Correct max_doc_freq default value (#49536)
The default is set to Integer.MAX_VALUE but is reported to be `0` in the docs. With the current implementation a value of 0 would mean all terms are filtered out, which is the opposite of "unbounded". Closes #49520
1 parent 244fbf2 commit 882f5e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ input document. Defaults to `5`.
198198
`max_doc_freq`::
199199
The maximum document frequency above which the terms will be ignored from the
200200
input document. This could be useful in order to ignore highly frequent words
201-
such as stop words. Defaults to unbounded (`0`).
201+
such as stop words. Defaults to unbounded (`Integer.MAX_VALUE`, which is `2^31-1`
202+
or 2147483647).
202203

203204
`min_word_length`::
204205
The minimum word length below which the terms will be ignored. The old name

0 commit comments

Comments
 (0)