Project

General

Profile

Actions

Patch #43701

open

Redmine::Search::Tokenizer limited to 5 => problem for "contains any of", "starts with" and "ends with" filter operators

Added by Jan Catrysse 8 months ago. Updated 3 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Filters
Target version:
-

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.

Related to: #38435 and #38456


Files


Related issues

Related to Redmine - Feature #44464: Show a warning when a text filter value contains more than 5 search termsNewActions
Actions #1

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
Actions #2

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.

Actions

Also available in: Atom PDF