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 167c893 commit 53009dfCopy full SHA for 53009df
lib/MetaCPAN/Web/Model/API/Author.pm
@@ -38,7 +38,8 @@ sub search {
38
bool => {
39
should => [
40
{ text => { 'author.name.analyzed' => $query } },
41
- { text => { 'author.pauseid' => uc($query) } }
+ { text => { 'author.pauseid' => uc($query) } },
42
+ { text => { 'author.profile.id' => lc($query) } },
43
]
44
}
45
},
@@ -50,8 +51,8 @@ sub search {
50
51
sub {
52
my $results = shift->recv
53
|| { hits => { total => 0, hits => [] } };
- $cv->send( {
54
- results => [
+ $cv->send(
55
+ { results => [
56
map { +{ %{ $_->{_source} }, id => $_->{_id} } }
57
@{ $results->{hits}{hits} }
58
],
0 commit comments