diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-03-07 23:47:36 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-05-24 20:24:54 +0200 |
commit | 50fc9d77128db4f8565265047166c6ef61bac5c5 (patch) | |
tree | eadc23eeaca476412e36c63161f5a2e4ab96aabd /scripts/search.pl | |
parent | 0ea91b298e8fc1c439f42c9288247e9223ce552e (diff) | |
download | bugzilla-50fc9d77128db4f8565265047166c6ef61bac5c5.tar.gz bugzilla-50fc9d77128db4f8565265047166c6ef61bac5c5.tar.xz |
Bug 1307485 - Add code to run a subset of buglist.cgi search queries against the ES backend
Diffstat (limited to 'scripts/search.pl')
-rw-r--r-- | scripts/search.pl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/search.pl b/scripts/search.pl new file mode 100644 index 000000000..6e0f7245d --- /dev/null +++ b/scripts/search.pl @@ -0,0 +1,13 @@ +#!/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 +); |