Skip to content

Commit

Permalink
20 is not 'huge' enough (--> fixes ./t/controller/search/precision.t)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed May 26, 2016
1 parent 0a4bee0 commit ed71d33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Web/Model/API/Module.pm
Expand Up @@ -285,15 +285,15 @@ sub search {
term => {
'documentation' => {
value => $query,
boost => 20
boost => 100
}
}
},
{
term => {
'module.name' => {
value => $query,
boost => 20
boost => 100
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions t/controller/search/precision.t
Expand Up @@ -20,8 +20,8 @@ my %tests = (

test_psgi app, sub {
my $cb = shift;
while ( my ( $k, $v ) = each %tests ) {

for my $k ( sort keys %tests ) {
my $v = $tests{$k};
ok( my $res = $cb->( GET "/search?q=$k" ), 'search for ' . $k );
my $tx = tx($res);
my $module
Expand Down

0 comments on commit ed71d33

Please sign in to comment.