Quicksearch works different from documented

We switched to full text search with the last update to 4.4.7 few weeks ago. That leads to some confusion regarding the QuickSearch.

In /Search/Simple.html one reads

Any word not recognized by RT is searched for in ticket subjects.

You can search for any word in full ticket history by typing fulltext:word.

But the source uses FTS a default:

sub HandleDefault   {
    my $fts = RT->Config->Get('FullTextSearch');
    if ($fts->{Enable} and $fts->{Indexed}) {
        return default => "Content LIKE '$_[1]'";
    } else {
        return default => "Subject LIKE '$_[1]'";
    }

(lib/RT/Search/Simple.pm line 280ff)

Three solutions possible

  1. change the text in /Search/Simple.html
  2. change the default back to subject in any case
  3. implement a configuration item (RT_Config) to choose the default and change the text
  4. search in both per default Content LIKE 'query' OR Subject LIKE 'query'

Our users seem to prefer to search the subject or both.
In my opinion point 4. is the real “Quicksearch”.

What do you think should be done?

1 Like

I believe implementing option 4, which searches both the Content and Subject by default, would best align with the user preference for QuickSearch and ensure consistency with expectations.

I agree @Johan_Hurry Option 4 is what new users expect using QuickSearch in my opinion, too.

Our users decided to prefer the old behavior:

  • Search in subject as default
  • Search in subject and content with fulltext:
  • Search in content with content:

So we customized at line 280:

sub HandleDefault   { return default   => "Subject LIKE '$_[1]'"; }
sub HandleSubject   { return subject   => "Subject LIKE '$_[1]'"; }
sub HandleFulltext  { return content   => "Content LIKE '$_[1]' OR Subject LIKE '$_[1]'"; }