File tree 2 files changed +3
-11
lines changed
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -494,10 +494,7 @@ sub autocomplete {
494
494
return $data ;
495
495
}
496
496
497
- # this method will replace 'sub autocomplete' after the
498
- # mapping + data is fully deployed.
499
- # -- Mickey
500
- sub autocomplete_using_suggester {
497
+ sub autocomplete_suggester {
501
498
my ( $self , $query ) = @_ ;
502
499
return $self unless $query ;
503
500
Original file line number Diff line number Diff line change @@ -18,15 +18,10 @@ sub get : Local : Path('') : Args(0) {
18
18
$self -> model($c )-> autocomplete( $c -> req-> param(" q" ) ) );
19
19
}
20
20
21
- # this method will replace 'sub get' after the suggester
22
- # mapping + data is fully deployed and metacpan-web
23
- # is fully tested against it.
24
- # -- Mickey
25
- sub _get : Local : Path(' /_get' ) : Args(0) {
21
+ sub suggest : Local : Path(' /suggest' ) : Args(0) {
26
22
my ( $self , $c ) = @_ ;
27
23
$c -> stash_or_detach(
28
- $self -> model($c )-> autocomplete_using_suggester( $c -> req-> param(" q" ) )
29
- );
24
+ $self -> model($c )-> autocomplete_suggester( $c -> req-> param(" q" ) ) );
30
25
}
31
26
32
27
1;
You can’t perform that action at this time.
0 commit comments