The Quicksearch Utility

The Bugzilla Guide
Prev | Appendix D. Useful Patches and Utilities for Bugzilla | Next

# D.3. The Quicksearch Utility

Quicksearch is a single-text-box query tool which uses metacharacters to indicate what is to be searched. For example, "foo@bar.com" would be looked for in email address fields, because it contains an @ and so is an email address.

Quicksearch consists of two Javascript files, "quicksearch.js" and "localconfig.js", and two documentation files, "quicksearch.html" and "quicksearchhack.html". More information on how to use Quicksearch can be found there. You'll find the Quicksearch box on Bugzilla's front page.

To take full advantage of the query power, the Bugzilla maintainer must edit "localconfig.js" and change the parameters according to the local installation.

Currently, keywords must be hard-coded in localconfig.js. If they are not, keywords are not automatically recognized. This means, if localconfig.js is left unconfigured, that searching for a bug with the "foo" keyword will only find bugs with "foo" in the summary, status whiteboard, product or component name, but not those with the keyword "foo".

Workarounds for Bugzilla users:

search for '!foo' (this will find only bugs with the keyword "foo"
search 'foo,!foo' (equivalent to 'foo OR keyword:foo')

When this tool is ported from client-side JavaScript to server-side Perl, the requirement for hard-coding keywords can be fixed. This bug has details.

Prev | Home | Next
Command-line Bugzilla Queries | Up | Glossary