View | Details | Raw Unified | Return to bug 27113
Collapse All | Expand All

(-)a/api/elasticsearch/elasticsearch.pl (-1 / +1 lines)
Lines 11-17 use Koha::SearchEngine::Elasticsearch::Browse; Link Here
11
11
12
my $browser = Koha::SearchEngine::Elasticsearch::Browse->new( { index => 'biblios' } );
12
my $browser = Koha::SearchEngine::Elasticsearch::Browse->new( { index => 'biblios' } );
13
my $cgi = CGI->new;
13
my $cgi = CGI->new;
14
my $session = CGI::Session->new();
14
my $session = CGI::Session->load() or die CGI::Session->errstr();
15
15
16
$session->param(-name=>'analyzer', -value=>"autocomplete");
16
$session->param(-name=>'analyzer', -value=>"autocomplete");
17
$session->param(-name=>'prefix', -value=>$cgi->multi_param("prefix"));
17
$session->param(-name=>'prefix', -value=>$cgi->multi_param("prefix"));
(-)a/opac/svc/elasticsearch/opac-elasticsearch.pl (-2 / +1 lines)
Lines 11-17 use Koha::SearchEngine::Elasticsearch::Browse; Link Here
11
11
12
my $browser = Koha::SearchEngine::Elasticsearch::Browse->new( { index => 'biblios' } );
12
my $browser = Koha::SearchEngine::Elasticsearch::Browse->new( { index => 'biblios' } );
13
my $cgi = CGI->new;
13
my $cgi = CGI->new;
14
my $session = CGI::Session->new();
14
my $session = CGI::Session->load() or die CGI::Session->errstr();
15
15
16
$session->param(-name=>'analyzer', -value=>"autocomplete");
16
$session->param(-name=>'analyzer', -value=>"autocomplete");
17
$session->param(-name=>'prefix', -value=>$cgi->multi_param("prefix"));
17
$session->param(-name=>'prefix', -value=>$cgi->multi_param("prefix"));
18
- 

Return to bug 27113