We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a50825 commit 6e1da8fCopy full SHA for 6e1da8f
lib/MetaCPAN/Script/Latest.pm
@@ -139,9 +139,19 @@ sub run {
139
'Searching for ' . @$filter . ' of ' . $total . ' modules'
140
}
141
if @module_filters > 1;
142
- my $scroll = $self->index->type('file')->query($query)->source( [ qw(
143
- author date distribution download_url module.name release status
144
- ) ] )->size(100)->raw->scroll;
+
+ my $scroll = $self->es->scroll_helper( {
+ index => $self->index->name,
145
+ type => 'file',
146
+ size => 100,
147
+ body => {
148
+ query => $query,
149
+ _source => [
150
+ qw(author date distribution download_url module.name release status)
151
+ ],
152
+ sort => '_doc',
153
+ },
154
+ } );
155
156
$found_total += $scroll->total;
157
0 commit comments