-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Prevent illegal max_query_terms values in MLT query #49927
Copy link
Copy link
Closed
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>enhancementgood first issuelow hanging fruitlow hanging fruitv7.6.0v8.0.0-alpha1
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>enhancementgood first issuelow hanging fruitlow hanging fruitv7.6.0v8.0.0-alpha1
Type
Fields
Give feedbackNo fields configured for issues without a type.