Actions
Feature #38446
closedSupport multiple multi-word phrases in the search engine
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Description
Currently, the search engine does not support multiple multi-word phrases.
For example, we cannot search objects that contain two phrases "closed issue" and "closed version". If you give a search string "closed issue" "closed version"
, the search engine search for objects containing three strings "closed issue", "closed", and "version". This is due to the behavior of Redmine::Search::Tokenizer#tokens
.
Redmine::Search::Tokenizer.new(%q|"closed issue" "closed version"|).tokens
=> ["closed issue", "closed", "version"]
If the Tokenizer returns two tokens, "closed issue" and "closed version" for the same input, it will be possible to search for multiple multi-word phrases.
Files
Related issues
Updated by Go MAEDA 7 months ago
- File 38446.patch 38446.patch added
I am submitting a patch for this issue, which enhances the tokenizer's ability to handle multiple quoted phrases.
Updated by Go MAEDA 7 months ago
- File 38446-v2.patch 38446-v2.patch added
Updated the patch.
- In the regular expressions, changed
[:space:]
to\p{Zs}
which does not match with TAB, CR, and LF - Improved the regular expression for
gsub
.
Updated by Go MAEDA 6 months ago
- Related to Feature #38435: "contains any of" operator for text filters to perform OR search of multiple terms added
Actions