Skip to content

Commit bf98ed2

Browse files
authored
Merge pull request #949 from metacpan/oalders/mickey/add_date_to_suggestions
Add date to suggestions
2 parents f4282f7 + 25883ca commit bf98ed2

File tree

1 file changed

+9
-2
lines changed
  • lib/MetaCPAN/Document/File

1 file changed

+9
-2
lines changed

lib/MetaCPAN/Document/File/Set.pm

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,15 @@ sub autocomplete_suggester {
579579
( $docs{ $suggest->{text} }, $suggest->{score} );
580580
}
581581

582-
my @fields = (qw(documentation distribution author release deprecated));
583-
my $data = $self->es->search(
582+
my @fields = qw(
583+
author
584+
date
585+
deprecated
586+
distribution
587+
documentation
588+
release
589+
);
590+
my $data = $self->es->search(
584591
{
585592
index => $self->index->name,
586593
type => 'file',

0 commit comments

Comments
 (0)