Add custom field to default search query

Hello,

the default search form on every page only allows to search through standard fields, but not through
custom fields.

Is there any way, like hacking an (sql) query, to include just one custom field with the standard
search?

I.e. we are tracking the customer ID in one of these fields. We would like to include it in the
standard search, without having to use the advanced search feature, which takes time. It’s also not
applicable to setup saved searches, as we want to remain totally dynamic.

Any hints?

Thanks in advance.

Best regards,

Lars Braeuer

the default search form on every page only allows to search through standard fields, but not through
custom fields.

Is there any way, like hacking an (sql) query, to include just one custom field with the standard
search?

I.e. we are tracking the customer ID in one of these fields. We would like to include it in the
standard search, without having to use the advanced search feature, which takes time. It’s also not
applicable to setup saved searches, as we want to remain totally dynamic.

I’m assuming that you’re on RT4 since you didn’t specify, this code
changed dramatically between 3.8 and 4.

You probably want to override HandleSubject to search Subject and the
CF, or add your own item to @GUESS in lib/RT/Search/Googleish.pm

-kevin

Is there any way, like hacking an (sql) query, to include just one
custom field with the standard search?

Others have pointed out ways to extend the simple search to
automatically search a CF, but you can do it manually by typing
CF.Customer:123 in the search box to search a custom field named
Customers with the value “123”.

Thomas