Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tidy
  • Loading branch information
oalders committed Nov 20, 2016
1 parent e71eb8a commit f44e1ff
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions lib/MetaCPAN/Document/File/Set.pm
Expand Up @@ -23,20 +23,30 @@ sub find {
{ term => { indexed => 1, } },
{ term => { authorized => 1 } },
{ term => { status => 'latest' } },
{ or => [
{
nested => {
path => "module",
filter => {
and => [
{ term => { "module.name" => $module } },
{ term => { "module.authorized" => 1 } },
]
{
or => [
{
nested => {
path => "module",
filter => {
and => [
{
term => {
"module.name" => $module
}
},
{
term => {
"module.authorized" => 1
}
},
]
}
}
}
},
{ term => { documentation => $module } },
] },
},
{ term => { documentation => $module } },
]
},
],
should => [
{ term => { documentation => $module } },
Expand Down

0 comments on commit f44e1ff

Please sign in to comment.