Skip to content

Commit

Permalink
fix test query (bool filter was replaced with bool query)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Apr 26, 2016
1 parent f669650 commit 549d2d3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions t/lib/MetaCPAN/Tests/Release.pm
Expand Up @@ -118,13 +118,15 @@ sub filter_files {

my $release = $self->data;
return [
$self->index->type('file')->filter(
$self->index->type('file')->query(
{
and => [
{ term => { 'author' => $release->author } },
{ term => { 'release' => $release->name } },
@{ $add_filters || [] },
],
bool => {
must => [
{ term => { 'author' => $release->author } },
{ term => { 'release' => $release->name } },
@{ $add_filters || [] },
],
}
}
)->size(100)->all
];
Expand Down

0 comments on commit 549d2d3

Please sign in to comment.