Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refine release's modules search
  • Loading branch information
mickeyn committed Jun 12, 2016
1 parent 2071c8d commit 606ea93
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/MetaCPAN/Web/Model/API/Release.pm
Expand Up @@ -153,8 +153,9 @@ sub modules {
query => { match_all => {} },
filter => {
and => [
{ term => { release => $release } },
{ term => { author => $author } },
{ term => { release => $release } },
{ term => { author => $author } },
{ term => { directory => 0 } },
{
or => [
{
Expand All @@ -173,6 +174,10 @@ sub modules {
},
{
and => [
{
range =>
{ slop => { gt => 0 } }
},
{
exists => {
field => 'pod.analyzed'
Expand Down

0 comments on commit 606ea93

Please sign in to comment.