Skip to content

Commit 8342391

Browse files
committed
fix nested.filter queries to be nested.query
1 parent f9c3894 commit 8342391

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/MetaCPAN/Query/Release.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ sub find_download_url {
10901090
nested => {
10911091
path => 'module',
10921092
inner_hits => { _source => 'version' },
1093-
filter => $entity_filter,
1093+
query => $entity_filter,
10941094
}
10951095
};
10961096
}

lib/MetaCPAN/Script/Latest.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ sub run {
123123
must => [
124124
{
125125
nested => {
126-
path => 'module',
127-
filter => { bool => { must => $filter } }
126+
path => 'module',
127+
query => { bool => { must => $filter } }
128128
}
129129
},
130130
{ term => { 'maturity' => 'released' } },

0 commit comments

Comments
 (0)