summaryrefslogtreecommitdiffstats
path: root/scripts
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 /scripts
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 'scripts')
-rw-r--r--scripts/search.pl13
-rw-r--r--scripts/suggest-user.pl20
2 files changed, 0 insertions, 33 deletions
diff --git a/scripts/search.pl b/scripts/search.pl
deleted file mode 100644
index 6e0f7245d..000000000
--- a/scripts/search.pl
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use warnings;
-use Bugzilla;
-use JSON '-convert_blessed_universally';
-
-print JSON->new->pretty->encode(
- Bugzilla::Elastic::Search->new(
- quicksearch => "@ARGV",
- fields => ['bug_id', 'short_desc'],
- order => ['bug_id'],
- )->es_query
-);
diff --git a/scripts/suggest-user.pl b/scripts/suggest-user.pl
deleted file mode 100644
index dcf24da87..000000000
--- a/scripts/suggest-user.pl
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use warnings;
-use FindBin qw($RealBin);
-use lib ($RealBin);
-use Bugzilla;
-use Search::Elasticsearch;
-use Bugzilla::Elastic;
-
-my $elastic = Bugzilla::Elastic->new(
- es_client => Search::Elasticsearch->new()
-);
-my $user = Bugzilla::User->check({name => 'dylan@mozilla.com'});
-Bugzilla->set_user($user);
-my $users;
-
-for (1..4) {
- $users = $elastic->suggest_users($ARGV[0]);
-}
-print "$_->{name}\n" for @$users;