Skip to content

Commit

Permalink
Merge pull request #1715 from CPAN-API/mickey/fix_search_links
Browse files Browse the repository at this point in the history
fix search results (fixes module->pod link in search page)
  • Loading branch information
oalders committed Jun 9, 2016
2 parents 5a8de9b + 464665e commit a30b65d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/MetaCPAN/Web/Model/API/Module.pm
Expand Up @@ -208,6 +208,7 @@ sub _extract_results {
my $dist = $res->{fields}{distribution};
+{
%{ $res->{fields} },
%{ $res->{_source} },
abstract => $res->{fields}{'abstract.analyzed'},
score => $res->{_score},
rating => $ratings->{ratings}{$dist},
Expand Down Expand Up @@ -387,7 +388,8 @@ sub search {
}
}
},
fields => [
_source => "module",
fields => [
qw(
documentation
author
Expand All @@ -397,7 +399,6 @@ sub search {
status
indexed
authorized
module.name
distribution
date
id
Expand Down

0 comments on commit a30b65d

Please sign in to comment.