summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-01-27 19:21:42 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-01-27 19:21:42 +0100
commitedd311542420b987440ee9b4ce481666f7c762b4 (patch)
tree9aa5522d51fcef762907abd7e10ada8656d887d9 /template
parent0bd5bfb9b40bd81c546e7ae7a0a9ab281f308709 (diff)
downloadbugzilla-edd311542420b987440ee9b4ce481666f7c762b4.tar.gz
bugzilla-edd311542420b987440ee9b4ce481666f7c762b4.tar.xz
Bug 76498: QuickSearch: support comparison operators other than substring
r=LpSolit a=justdave
Diffstat (limited to 'template')
-rw-r--r--template/en/default/pages/quicksearch.html.tmpl46
1 files changed, 46 insertions, 0 deletions
diff --git a/template/en/default/pages/quicksearch.html.tmpl b/template/en/default/pages/quicksearch.html.tmpl
index 78634b041..2a3507ed2 100644
--- a/template/en/default/pages/quicksearch.html.tmpl
+++ b/template/en/default/pages/quicksearch.html.tmpl
@@ -209,6 +209,52 @@
(<kbd>url</kbd> OR <kbd>location</kbd>) AND (<kbd>bar</kbd> OR
<kbd>field</kbd>) AND (NOT <kbd>focus</kbd>)</p>
</li>
+
+ <li>
+ The default operator, colon (:), performs a <strong>substring</strong>
+ match of the value. The following operators are supported:
+ <ul>
+ <li>
+ <strong>:</strong> (substring):<br>
+ <kbd><em>summary:foo</em></kbd> will search for [% terms.bugs %]
+ where the <kbd>summary</kbd> contains <kbd>foo</kbd>.
+ </li>
+ <li>
+ <strong>=</strong> (equals):<br>
+ <kbd><em>summary=foo</em></kbd> will search for [% terms.bugs %]
+ where the <kbd>summary</kbd> is exactly <kbd>foo</kbd>.
+ </li>
+ <li>
+ <strong>!=</strong> (notequals):<br>
+ <kbd><em>summary!=foo</em></kbd> will search for [% terms.bugs %]
+ where the <kbd>summary</kbd> is not <kbd>foo</kbd>.
+ </li>
+ <li>
+ <strong>&gt;</strong> (greaterthan):<br>
+ <kbd><em>creation_ts&gt;-2w</em></kbd> will search for [% terms.bugs %]
+ where that were created between two weeks ago and now, excluding [%
+ terms.bugs %] exactly two weeks old.
+ </li>
+ <li>
+ <strong>&gt;=</strong> (greaterthaneq):<br>
+ <kbd><em>creation_ts&gt;=-2w</em></kbd> will search for [% terms.bugs %]
+ where that were created between two weeks ago and now, including [%
+ terms.bugs %] exactly two weeks old.
+ </li>
+ <li>
+ <strong>&lt;</strong> (lessthan):<br>
+ <kbd><em>creation_ts&lt;-2w</em></kbd> will search for [% terms.bugs %]
+ where that were created more than two weeks ago, excluding [%
+ terms.bugs %] exactly two weeks old.
+ </li>
+ <li>
+ <strong>&lt;=</strong> (lessthaneq):<br>
+ <kbd><em>creation_ts&lt;=-2w</em></kbd> will search for [% terms.bugs %]
+ where that were created more than two weeks ago, including [%
+ terms.bugs %] exactly two weeks old.
+ </li>
+ </ul>
+ </li>
</ul>
<h2 id="shortcuts">Advanced Shortcuts</h2>