Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13983123
D18593.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
898 B
Referenced Files
None
Subscribers
None
D18593.diff
View Options
diff --git a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
--- a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
+++ b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
@@ -1683,6 +1683,9 @@
// If this is a stemmed term, only look for ngrams present in both the
// unstemmed and stemmed variations.
if ($is_stemmed) {
+ // Trim the boundary space characters so the stemmer recognizes this
+ // is (or, at least, may be) a normal word and activates.
+ $terms_value = trim($terms_value, ' ');
$stem_value = $stemmer->stemToken($terms_value);
$stem_ngrams = $engine->getTermNgramsFromString($stem_value);
$ngrams = array_intersect($ngrams, $stem_ngrams);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 21, 4:17 AM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6733020
Default Alt Text
D18593.diff (898 B)
Attached To
Mode
D18593: Fix an issue with selecting the right stemmed ngrams with Ferret engine queries
Attached
Detach File
Event Timeline
Log In to Comment