From edd311542420b987440ee9b4ce481666f7c762b4 Mon Sep 17 00:00:00 2001
From: Byron Jones
Date: Mon, 27 Jan 2014 19:21:42 +0100
Subject: Bug 76498: QuickSearch: support comparison operators other than
substring r=LpSolit a=justdave
---
template/en/default/pages/quicksearch.html.tmpl | 46 +++++++++++++++++++++++++
1 file changed, 46 insertions(+)
(limited to 'template')
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 @@
(url OR location) AND (bar OR
field) AND (NOT focus)
+
+
+ The default operator, colon (:), performs a substring
+ match of the value. The following operators are supported:
+
+ -
+ : (substring):
+ summary:foo will search for [% terms.bugs %]
+ where the summary contains foo.
+
+ -
+ = (equals):
+ summary=foo will search for [% terms.bugs %]
+ where the summary is exactly foo.
+
+ -
+ != (notequals):
+ summary!=foo will search for [% terms.bugs %]
+ where the summary is not foo.
+
+ -
+ > (greaterthan):
+ creation_ts>-2w will search for [% terms.bugs %]
+ where that were created between two weeks ago and now, excluding [%
+ terms.bugs %] exactly two weeks old.
+
+ -
+ >= (greaterthaneq):
+ creation_ts>=-2w will search for [% terms.bugs %]
+ where that were created between two weeks ago and now, including [%
+ terms.bugs %] exactly two weeks old.
+
+ -
+ < (lessthan):
+ creation_ts<-2w will search for [% terms.bugs %]
+ where that were created more than two weeks ago, excluding [%
+ terms.bugs %] exactly two weeks old.
+
+ -
+ <= (lessthaneq):
+ creation_ts<=-2w will search for [% terms.bugs %]
+ where that were created more than two weeks ago, including [%
+ terms.bugs %] exactly two weeks old.
+
+
+
Advanced Shortcuts
--
cgit v1.2.3-24-g4f1b