Skip to content

Commit a47c72e

Browse files
committed
release: ES syntax update for newer versions
1 parent 72d66fc commit a47c72e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

bin/release.pl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -426,17 +426,18 @@ ($document)
426426
my $count = $es->search(
427427
search_type => 'count',
428428
body => {
429-
query => { match_all => {} },
430-
filter => {
431-
and => [
432-
{ term => { distribution => $document->{distribution} } },
433-
{
434-
range => {
435-
version_numified =>
429+
query => {
430+
bool => {
431+
must => [
432+
{ term => { distribution => $document->{distribution} } },
433+
{
434+
range => {
435+
version_numified =>
436436
{ 'lt' => $document->{version_numified} }
437+
},
437438
},
438-
}
439-
],
439+
],
440+
},
440441
},
441442
},
442443
)->{hits}{total};

0 commit comments

Comments
 (0)