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 9ae85a1 commit 2b6b5c9Copy full SHA for 2b6b5c9
lib/MetaCPAN/Document/File/Set.pm
@@ -501,7 +501,6 @@ sub autocomplete_using_suggester {
501
my ( $self, $query ) = @_;
502
return $self unless $query;
503
504
- my $result_size = 10;
505
my $search_size = 50;
506
507
my $suggestions
@@ -572,8 +571,8 @@ sub autocomplete_using_suggester {
572
571
|| $a cmp $b
573
}
574
keys %valid;
575
- return +{ suggestions =>
576
- [ grep {defined} ( $exact, @sorted[ 0 .. $result_size ] ) ] };
+
+ return +{ suggestions => [ grep {defined} ( $exact, @sorted ) ] };
577
578
579
sub dir {
0 commit comments