summaryrefslogtreecommitdiffstats
path: root/scripts/search.pl
blob: 3d2483f088959b93895fd0ff10d3ee71cf716380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
);