Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix query for release files
  • Loading branch information
andreeap committed Mar 19, 2015
1 parent f0f7e06 commit f7f9835
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/MetaCPAN/Script/Latest.pm
Expand Up @@ -189,14 +189,10 @@ sub reindex {
# Get all the files for the release.
my $scroll = $self->index->type("file")->size(1000)->filter(
{
query => {
filtered => {
and => [
{ term => { 'file.release' => $source->{release} } },
{ term => { 'file.author' => $source->{author} } }
]
}
}
and => [
{ term => { 'file.release' => $source->{release} } },
{ term => { 'file.author' => $source->{author} } }
]
}
)->raw->scroll;

Expand Down

0 comments on commit f7f9835

Please sign in to comment.