Navigation Menu

Skip to content

Commit

Permalink
remove dependency: ElasticSearch::SearchBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Apr 15, 2016
1 parent 004bb5d commit 72b2fa9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion cpanfile
Expand Up @@ -27,7 +27,6 @@ requires 'DateTime::Format::ISO8601';
requires 'Digest::MD5';
requires 'Digest::SHA1';
requires 'Search::Elasticsearch', '2.00';
requires 'ElasticSearch::SearchBuilder';
requires 'Encode', '2.51';
requires 'Exporter';
requires 'File::Path';
Expand Down
11 changes: 0 additions & 11 deletions cpanfile.snapshot
Expand Up @@ -2093,17 +2093,6 @@ DISTRIBUTIONS
base 0
strict 0
warnings 0
ElasticSearch-SearchBuilder-0.19
pathname: D/DR/DRTECH/ElasticSearch-SearchBuilder-0.19.tar.gz
provides:
ElasticSearch::SearchBuilder 0.19
requirements:
Carp 0
ExtUtils::MakeMaker 6.30
Scalar::Util 0
Test::More 0.96
strict 0
warnings 0
Email-Address-1.905
pathname: R/RJ/RJBS/Email-Address-1.905.tar.gz
provides:
Expand Down
5 changes: 1 addition & 4 deletions lib/MetaCPAN/Sitemap.pm
Expand Up @@ -9,7 +9,6 @@ use autodie;

use Carp;
use Search::Elasticsearch;
use ElasticSearch::SearchBuilder;
use File::Spec;
use MetaCPAN::Web::Types qw( HashRef Int Str );
use Moose;
Expand Down Expand Up @@ -76,9 +75,7 @@ sub process {
# Copy the filter over wholesale into the search parameters, and add
# the filter fields to the field list.

# TODO: check how this should be done in ES2+ -- mickey
$search_parameters{'body'}
= ElasticSearch::SearchBuilder->new->query( $self->filter );
$search_parameters{'body'}{'query'}{'match'} = $self->filter;
push @{ $search_parameters{'fields'} }, keys %{ $self->filter };
}

Expand Down

0 comments on commit 72b2fa9

Please sign in to comment.