Skip to content

[Docs] incorrect description for Term Selection Parameters (max_doc_freq) #49520

@dharada

Description

@dharada

Describe the feature: this is not feature request. Docs bug.

Elasticsearch version (bin/elasticsearch --version): any

Description of the problem including expected versus actual behavior:

Current document says that

max_doc_freq | The maximum document frequency above which the terms will be ignored from the input document. This could be useful in order to ignore highly frequent words such as stop words. Defaults to unbounded (0).

but actual default is Integer.MAX_VALUE (not 0)
https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/common/lucene/search/XMoreLikeThis.java#L194

(ref)
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html#mlt-query-term-selection

615513e

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search/SearchSearch-related issues that do not fall into other categories>docsGeneral docs changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions