Skip to content

Commit

Permalink
fix search results (fixes module->pod link in search page)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Jun 9, 2016
1 parent e107bf1 commit 464665e
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 464665e

Please sign in to comment.