]>
Commit | Line | Data |
---|---|---|
8047d695 MR |
1 | # Remove subject from freetext search since we coallece it. |
2 | no warnings qw/redefine/; | |
3 | package RT::Search::Simple; | |
4 | ||
5 | sub HandleDefault { | |
6 | my $fts = RT->Config->Get('FullTextSearch'); | |
7 | if ($fts->{Enable} and $fts->{Indexed}) { | |
8 | return default => "Content LIKE '$_[1]'"; | |
9 | } else { | |
10 | return default => "Subject LIKE '$_[1]'"; | |
11 | } | |
12 | } | |
13 | ||
14 | 1; |