Skip to content

Prevent illegal max_query_terms values in MLT query #49927

@cbuescher

Description

@cbuescher

The MoreLikeThisQueryBuilder and MoreLikeThisQuery can be created with illegal max_query_terms values (e.g. negativ or 0 values). This can lead to NPEs as demonstrated in #48007. We should check and reject those values in the relevant places (e.g. setters) in the builder and the query.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions