summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-03-14 00:23:22 +0100
committerDylan William Hardison <dylan@hardison.net>2017-03-14 16:13:30 +0100
commitac85576a8799ec12036bfb8bb93ac48f96830f1f (patch)
tree769db0131ede6f433594da5286b552a694cd6d4e /Bugzilla/Search
parentc56b9339af827fea16217832d93b266a27294acf (diff)
downloadbugzilla-ac85576a8799ec12036bfb8bb93ac48f96830f1f.tar.gz
bugzilla-ac85576a8799ec12036bfb8bb93ac48f96830f1f.tar.xz
Revert "Bug 1307485 - Add code to run a subset of buglist.cgi search queries against the ES backend"
Diffstat (limited to 'Bugzilla/Search')
-rw-r--r--Bugzilla/Search/Quicksearch.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index 462a9ba85..4f11a3f54 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -127,7 +127,7 @@ use constant COMPONENT_EXCEPTIONS => (
);
# Quicksearch-wide globals for boolean charts.
-our ($chart, $and, $or, $fulltext, $bug_status_set, $ELASTIC);
+our ($chart, $and, $or, $fulltext, $bug_status_set);
sub quicksearch {
my ($searchstring) = (@_);
@@ -587,8 +587,7 @@ sub _default_quicksearch_word {
addChart('alias', 'substring', $word, $negate);
addChart('short_desc', 'substring', $word, $negate);
addChart('status_whiteboard', 'substring', $word, $negate);
- addChart('longdesc', 'substring', $word, $negate) if $ELASTIC;
- addChart('content', 'matches', _matches_phrase($word), $negate) if $fulltext && !$ELASTIC;
+ addChart('content', 'matches', _matches_phrase($word), $negate) if $fulltext;
# BMO Bug 664124 - Include the crash signature (sig:) field in default quicksearches
addChart('cf_crash_signature', 'substring', $word, $negate);
@@ -618,7 +617,6 @@ sub _handle_urls {
# Quote and escape a phrase appropriately for a "content matches" search.
sub _matches_phrase {
my ($phrase) = @_;
- return $phrase if $ELASTIC;
$phrase =~ s/"/\\"/g;
return "\"$phrase\"";
}