Skip to content

Commit e5aae05

Browse files
committed
Explicitly use simple when processing ticket Description search strings
It ensures consistency with the FUNCTION parameter which already uses 'simple' configuration for to_tsvector(), which is also consistent with the following index: CREATE INDEX Tickets7 ON Tickets USING GIN(to_tsvector('simple', Description)); This fixes a test failure in t/ticket/search.t: searching "database" could be interpreted as the its stem "databas" (depending on default_text_search_config) instead of "database" the "simple" config returns.
1 parent 3207dc7 commit e5aae05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/RT/Tickets.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ sub _FullTextStringLimit {
819819
%rest,
820820
FUNCTION => "to_tsvector('simple', main.$field)",
821821
OPERATOR => '@@',
822-
VALUE => 'plainto_tsquery(' . $dbh->quote($value) . ')',
822+
VALUE => q{plainto_tsquery('simple', } . $dbh->quote($value) . ')',
823823
QUOTEVALUE => 0,
824824
);
825825
}

0 commit comments

Comments
 (0)