Patch #43701
openRedmine::Search::Tokenizer limited to 5 => problem for "contains any of", "starts with" and "ends with" filter operators
Description
The Redmine::Search::Tokenizer is limited to 5, with a hardcoded limit.
This introduces an issue contains any of, starts with and ends with filter operators.
This patch provides an override of that limit in the Redmine settings.
This leads to an enhanced user experience for filter operations with a configurable and flexible override of hardcoded limits.
Files
Related issues
Updated by Go MAEDA 3 days ago
- Related to Feature #44464: Show a warning when a text filter value contains more than 5 search terms added
Updated by Go MAEDA 3 days ago
Thank you for reporting this problem and for the patch.
I agree that silently ignoring some search terms is a problem. However, I think the limit itself is worth keeping, because it prevents expensive database queries. I have therefore submitted a patch with a different approach as #44464. It keeps the limit and displays a warning that lists the search terms actually used.
The two approaches are independent of each other, so the proposal in this issue can still be discussed here.