Commit 5b2994b0 authored by cyeh%bluemartini.com's avatar cyeh%bluemartini.com

fix for 69793: check in new files for QuickSearch

patch contributed by franke@ags.uni-sb.de (Andreas Franke) Now add quicksearch functionality to the main index page.
parent d0605ef9
......@@ -76,11 +76,23 @@ But it all boils down to a choice of:
<a href="createaccount.cgi">Open a new Bugzilla account</a><br>
<a href="relogin.cgi">Forget the currently stored login</a><br>
<a href="userprefs.cgi">Change password or user preferences</a><br>
<FORM METHOD=GET ACTION="show_bug.cgi">
<INPUT TYPE=SUBMIT VALUE="Find"> bug # <INPUT NAME=id SIZE=6></FORM>
<SCRIPT LANGUAGE="JavaScript">
document.forms[0].id.focus()
</SCRIPT>
<p>
<script language="JavaScript" src="localconfig.js"></script>
<script language="JavaScript" src="quicksearch.js"></script>
<form name="f" action="show_bug.cgi" method="get"
onsubmit="QuickSearch(); return false;">
Enter a bug # or some search terms:<br>
<input type="text" name="id">
<input type="submit" value="Show">
<a href="quicksearch.html">[Help]</a>
</form>
<script>
<!--
document.forms['f'].id.focus();
//-->
</script>
</BODY>
</HTML>
//
// This file contains the installation specific values for QuickSearch.
// See quicksearch.js for more details.
//
// the global bugzilla url
var bugzilla = "";
//var bugzilla = "http://bugzilla.mozilla.org/";
// Status and Resolution
// =====================
var statuses_open = new Array("UNCONFIRMED","NEW","ASSIGNED","REOPENED");
var statuses_resolved = new Array("RESOLVED","VERIFIED","CLOSED");
var resolutions = new Array("FIXED","INVALID","WONTFIX","LATER",
"REMIND","DUPLICATE","WORKSFORME","MOVED");
// Keywords
// ========
//
// Enumerate all your keywords here. This is necessary to avoid
// "foo is not a legal keyword" errors. This makes it possible
// to include the keywords field in the search by default.
var keywords = new Array(
// "foo", "bar", "baz"
);
// Platforms
// =========
//
// A list of words <w> (substrings of platform values)
// that will automatically be translated to "platform:<w>"
// E.g. if "mac" is defined as a platform, then searching
// for it will find all bugs with platform="Macintosh",
// but no other bugs with e.g. "mac" in the summary.
var platforms = new Array(
"pc","sun","macintosh","mac" //shortcut added
//,"dec","hp","sgi"
//,"all" //this is a legal value for OpSys, too :(
//,"other"
);
// Severities
// ==========
//
// A list of words <w> (substrings of severity values)
// that will automatically be translated to "severity:<w>"
// E.g with this default set of severities, searching for
// "blo,cri,maj" will find all severe bugs.
var severities = new Array("blo","cri","maj","nor","min","tri","enh");
// Products and Components
// =======================
//
// It is not necessary to list all products and components here.
// Instead, you can define a "blacklist" for some commonly used
// words or word fragments that occur in a product or component name
// but should _not_ trigger product/component search.
var product_exceptions = new Array(
"row" // [Browser]
// ^^^
,"new" // [MailNews]
// ^^^
);
var component_exceptions = new Array(
"hang" // [mozilla.org] Bugzilla: Component/Keyword Changes
// ^^^^
);
<html>
<head>
<title>Bugzilla QuickSearch</title>
</head>
<body bgcolor="#ffffff">
<small>If you are already familiar with the original
<a href="query.cgi">Bugzilla Query Form</a>,
you may prefer <a href="quicksearchhack.html">this form</a>.
</small>
<p>
<script src="localconfig.js"></script>
<script src="quicksearch.js"></script>
<h1>Bugzilla QuickSearch</h1>
Type in one or more words (or word fragments) to search for:
<!-- The name of the form must be "f" (used in "quicksearch.js"). -->
<form name="f" action="show_bug.cgi" method="get"
onsubmit="QuickSearch(); return false;">
<table>
<tr>
<td><input type="text" size="40" name="id"/></td>
<td align=left><input type="submit" value="Search"/></td>
<!-- <td><a href="javascript:QuickSearch_Help();">[Help]</a></td> -->
</tr>
</table>
</form>
<script>
<!--
document.forms['f'].id.focus();
//-->
</script>
<p>
<h2>Getting Started</h2>
<ul>
<li> This is <b>case-insensitive</b> search.
<ul>
<li> &nbsp;<tt>table</tt>&nbsp;, &nbsp;<tt>Table</tt>&nbsp;
and &nbsp;<tt>TABLE</tt>&nbsp; are all the same.
</ul>
<li> This is <b>all words as substrings</b> search.<br>
Therefore you should <b>use stems</b> to get better results:
<ul>
<li> Use <tt>localiz</tt> instead of <tt>localize</tt> or
<tt>localization</tt>.
<li> Use <tt>bookmark</tt> instead of <tt>bookmarks</tt> or
<tt>bookmarking</tt>.
</ul>
</ul>
<a name="features"/>
<h2>Features</h2>
<ul>
<li> Boolean operations: ``<tt>-foo</tt>''(NOT), ``<tt>foo bar</tt>''(AND),
``<tt>foo|bar</tt>''(OR).
<ul>
<li> <b>NOT</b>: Use &nbsp;<tt><b>-</b><i>foo</i></tt>&nbsp; to exclude bugs
with &nbsp;<tt><i>foo</i></tt>&nbsp; in the summary.
<li> <b>AND</b>: Space-separated words are treated as a conjunction.
<li> <b>OR</b>: Within a word, "|"-separated parts denote alternatives.
<li> Besides "|", a comma can be used to separate alternatives.
<li> OR has higher precedence than AND; AND is the top level operation
</ul>
<i>Example:</i> &nbsp;<tt>url,location bar,field -focus</tt>&nbsp;
means
<nobr>(<tt>url</tt> OR <tt>location</tt>) AND (<tt>bar</tt> OR <tt>field</tt>) AND (NOT <tt>focus</tt>)</nobr>
<p>
<li> Use &nbsp;<tt>+foo</tt>&nbsp; to search for bugs where the <b>summary</b> contains &nbsp;<tt>foo</tt>&nbsp; as a <b>substring</b>.<br>
Use &nbsp;<tt>#foo</tt>&nbsp; to search for bugs where the <b>summary</b> contains the <b>word</b> &nbsp;<tt>foo</tt>&nbsp;
<ul>
<li> &nbsp;<tt>+brow</tt>&nbsp; does not find all bugs in the &nbsp;<tt>Browser</tt>&nbsp; product
<li> &nbsp;<tt>#title</tt>&nbsp; does not find bugs bugs with &nbsp;<tt>titlebar</tt>&nbsp; or &nbsp;<tt>titled</tt>&nbsp;
</ul>
Phrases with special chars (space, comma, +, -, #, ...) can be <b>quoted</b>:
<ul>
<li> &nbsp;<tt>"lock icon"</tt>&nbsp;
</ul>
<p>
<li> <b>Open vs. Resolved Bugs</b>:<br>
By default, only open (i.e. unresolved) bugs are shown.
Use &nbsp;<tt>+DUP</tt>&nbsp; as first word in your query
to include duplicate bugs in your search,
&nbsp;<tt>FIXED</tt>&nbsp; to search for fixed bugs only,
or &nbsp;<tt>ALL</tt>&nbsp; to search all bugs,
regardless of status or resolution. Searching for duplicates is
recommended if you can't find an open bug directly.
<ul>
<li> &nbsp;<tt>+DUP,FIXED table border</tt>&nbsp;
<li> &nbsp;<tt>ALL mouse wheel</tt>&nbsp;
</ul>
<p>
<li> <b>Focus the Search with Products &amp; Components</b>:<br>
To search for bugs in product "Foo Bar" only, add
&nbsp;<tt>:foo</tt>&nbsp; or &nbsp;<tt>:bar</tt>&nbsp; or both
to your query.
You can do this with any substring of a
<a href="describecomponents.cgi">product or component</a>
to focus the search.
</ul>
<h2>More Tips</h2>
<ul>
<li> You can also use this tool to <b>lookup</b> a bug by its number.
<ul>
<li> &nbsp;<tt>12345</tt>&nbsp;
</ul>
<li> A comma-separated list of bug numbers gives you a list of these bugs.
<ul>
<li> &nbsp;<tt>12345,23456,34567</tt>&nbsp;
</ul>
</ul>
<p>
By default, the following fields are searched: Summary, Keywords, Product,
Component, Status Whiteboard. If a word looks like a part of a URL, that field
is included in the search, too.
<p>
<!--
<small>For further details, see
<a href="http://bugzilla.mozilla.org/show_bug.cgi?id=61561">Bug 61561</a> and
<a href="http://bugzilla.mozilla.org/show_bug.cgi?id=69793">Bug 69793</a>.
</small>
-->
<hr>
Use the powerful
<a href="query.cgi">Bugzilla Query Form</a>
for advanced queries.
</body>
</html>
This diff is collapsed. Click to expand it.
<html>
<head>
<title>Bugzilla QuickSearch (for Hackers)</title>
</head>
<body bgcolor="#ffffff">
<script src="localconfig.js"></script>
<script src="quicksearch.js"></script>
<h1>Bugzilla QuickSearch (for Hackers)</h1>
Type in one or more words (or word fragments) to search for:
<!-- The name of the form must be "f" (used in "quicksearch.js"). -->
<form name="f" action="show_bug.cgi" method="get"
onsubmit="QuickSearch(); return false;">
<table>
<tr>
<td><input type="text" size="40" name="id"/></td>
<td align=left><input type="submit" name="run" value="Search"/></td>
<td align=left><input type="button" name="load" value="Load Query"
onclick="LoadQuery();" />
</td>
</tr>
</table>
</form>
<script>
<!--
document.forms['f'].id.focus();
//-->
</script>
<p>
This is a case-insensitive ``all words as substrings'' search;
words are separated by spaces.
By default, the following fields are relevant: Summary, Keywords,
Product, Component, Status Whiteboard. If you enter only a single
word, the URL field is included in the search, too.
<p>
The generic format for a ``word'' is
&nbsp;<tt>field1,...,fieldN:value1,...,valueM</tt>&nbsp;.
A bug qualifies if at least one of the values occurs as a substring in
at least one of the fields.
For example, &nbsp;<tt>owner,reporter,qa:ibm,sun</tt>&nbsp;
will give you bugs where the owner, reporter, or qa contact
has an email address that contains
&nbsp;<tt>ibm</tt>&nbsp; or &nbsp;<tt>sun</tt>&nbsp;.
If only &nbsp;<tt>value1,...,valueM</tt>&nbsp; is given,
the prefix (roughly) defaults to &nbsp;<tt>summary,keywords,product,component,statuswhiteboard:</tt>&nbsp; as noted above.
<p>
Here is a complete listing of available fields (the Shortcut column is just
for access speed):
<p>
<table border=1>
<thead>
<tr>
<td><b>Searched by default</b></td>
<td><b>Shortcut</b></td>
<td><b>Field Name</b></td>
<td><b>Aliases</b></td>
<td><b>Description</b></td>
</tr>
</thead>
<!-- Status, Resolution, Platform, OS, Priority, Severity -->
<tr>
<td>&nbsp;</td>
<td rowspan=2><tt><nobr>UNCO,NEW,...,CLOS,</nobr><br><nobr>FIX,DUP,...</nobr> <i><nobr>(as first word)</nobr></i></tt></td>
<td><tt>status</tt></td>
<td>&nbsp;</td>
<td><a href="bug_status.html">Status</a>
<i>("bug_status")</i>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><tt>resolution</tt></td>
<td>&nbsp;</td>
<td><a href="bug_status.html">Resolution</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><i>as-is</i></td>
<td><tt>platform</tt></td>
<td>&nbsp;</td>
<td><a href="bug_status.html#rep_platform">Platform</a> <i>("rep_platform")</i></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>os</tt></td>
<td><tt>opsys</tt></td>
<td><a href="bug_status.html#op_sys">OS</a> <i>("op_sys")</i></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><tt>p1,p2</tt> <i>or</i> <tt>p1-2</tt></td>
<td><tt>priority</tt></td>
<td><tt>pri</tt></td>
<td><a href="bug_status.html#priority">Priority</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><tt>blo,cri,...,enh</tt></td>
<td><tt>severity</tt></td>
<td><tt>sev</tt></td>
<td><a href="bug_status.html#severity">Severity</a> <i>("bug_severity")</i></td>
</tr>
<!-- People: AssignedTo, Reporter, QA Contact, CC, Added comment -->
<!-- Added comment is missing!!!! -->
<tr>
<td>&nbsp;</td>
<td><b>@</b><i>owner</i></td>
<td><tt>assignedto</tt></td>
<td><tt>assignee, owner</tt></td>
<td><a href="bug_status.html#assigned_to">Assignee</a> <i>("assigned_to")</i></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>reporter</tt></td>
<td><tt>rep</tt></td>
<td>Reporter (email)</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>qa</tt></td>
<td><tt>qacontact</tt></td>
<td>QA Contact (email) <i>("qa_contact")</i></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>cc</tt></td>
<td>&nbsp;</td>
<td>CC (email)</td>
</tr>
<!-- Product, Version, Component, Target Milestone -->
<tr>
<td><i>yes</i></td>
<td rowspan=2><b>:</b><i>area</i></td>
<td><tt>product</tt></td>
<td><tt>prod</tt></td>
<td>Product (enum)</td>
</tr>
<tr>
<td><i>yes</i></td>
<td><tt>component</tt></td>
<td><tt>comp</tt></td>
<td><a href="describecomponents.cgi">Component</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>version</tt></td>
<td><tt>ver</tt></td>
<td>Version (enum)</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>milestone</tt></td>
<td><tt>target, targetmilestone</tt></td>
<td>Target Milestone <i>("target_milestone")</i></td>
</tr>
<!-- Summary, Description, URL, Status whiteboard, Keywords -->
<tr>
<td><i>yes</i></td>
<td>&nbsp;</td>
<td><tt>summary</tt></td>
<td><tt>shortdesc</tt></td>
<td>Bug Summary (short text)<i>("short_desc")</i></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>description</tt></td>
<td><tt>desc, longdesc<!--, comment--></tt></td>
<!-- reserve "comment" for "added comment" email search?! -->
<td>Bug Description / Comments (long text)</td>
</tr>
<tr>
<td><i>one-word queries only</i></td>
<td>&nbsp;</td>
<td><tt>url</tt></td>
<td>&nbsp;</td>
<td>URL <i>("bug_file_loc")</i></td>
</tr>
<tr>
<td><i>yes</i></td>
<td>&nbsp;</td>
<td><tt>statuswhiteboard</tt></td>
<td><tt>sw, whiteboard</tt></td>
<td>Status Whiteboard <i>("status_whiteboard")</i></td>
</tr>
<tr>
<td><i>yes</i></td>
<td><b>!</b><i>keyword</i></td>
<td><tt>keywords</tt></td>
<td><tt>kw</tt></td>
<td><a href="describekeywords.cgi">Keywords</a></td>
</tr>
<!-- Attachments -->
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>attachmentdesc</tt></td>
<td><tt>attachdesc</tt></td>
<td>Attachment Description <i>("attachments.description")</i></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>attachmentdata</tt></td>
<td><tt>attachdata</tt></td>
<td>Attachment Data <i>("attachments.thedata")</i></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><tt>attachmentmimetype</tt></td>
<td><tt>attachmimetype</tt></td>
<td>Attachment mime-type <i>("attachments.mimetype")</i></td>
</tr>
</table>
<p>
Examples for some useful abbreviations:
<p>
<table border=1>
<thead>
<tr>
<td><b>Syntax</b></td>
<td><b>Semantics and Examples</b></td>
</tr>
</thead>
<!--
<tr>
<td><i>STAT</i> <i>(as first word)</i></td>
<td><b>status,resolution:</b><i>STAT</i></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td><tt>ALL</tt> <i>(as first word)</i></td>
<td><i>include all resolved bugs in your query</i></td>
</tr>
<tr>
<td><tt>+DUP,FIXED</tt> <i>(as first word)</i></td>
<td><i>include DUPLICATE and FIXED bugs in your search</i></td>
</tr>
-->
<tr>
<td><b>:</b><i>area</i></td>
<td><b>product,component:</b><i>area</i></td>
</tr>
<!--
<tr>
<td><tt>:browser</tt></td>
<td><i>bugs in the Browser product</i></td>
</tr>
<td><tt>:mail</tt></td>
<td><i>bugs in the MailNews product</td>
</tr>
<tr>
<td><tt>:xbl</tt></td>
<td><i>bugs in the XBL component</i></td>
</tr>
-->
<tr>
<td><i>sev</i></td>
<td><b>severity:</b><i>sev</i></td>
</tr>
<tr>
<td><tt>blo,cri,maj</tt></td>
<td><i>severe bugs</td>
</tr>
<tr>
<td><tt>enh</tt></td>
<td><i>enhancement requests</i></td>
</tr>
<tr>
<td><b>p</b><i>level</i></td>
<td><b>priority:</b><i>level</i></td>
</tr>
<tr>
<td><tt>p1<tt></td>
<td><i>very high-priority bugs</i></td>
</tr>
<tr>
<td><tt>p1-2</tt></td>
<td><i>high-priority bugs</td>
</tr>
<tr>
<td><b>@</b><i>owner</i></td>
<td><b>assignedto:</b><i>owner</i></td>
</tr>
<!--
<tr>
<td><tt>@nobody</tt></td>
<td><i>ownerless bugs</i></td>
</tr>
<tr>
<td><tt>@mozilla.org</tt></td>
<td><i>bugs assigned to mozilla.org members</i></td>
</tr>
-->
<tr>
<td><b>!</b><i>keyword</i></td>
<td><b>keywords:</b><i>keyword</i></td>
</tr>
<!--
<tr>
<td><tt>!crash</tt></td>
<td><i>crasher bugs</i></td>
</tr>
<tr>
<td><tt>!helpwanted</tt></td>
<td><i>bugs waiting for your help</i></td>
</tr>
-->
</table>
<p>
More information can be found in the
<a href="quicksearch.html#features">&quot;Features&quot;</a> section
on the <a href="quicksearch.html">introductory page</a>.
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment