@@ -, +, @@ --- Koha/SearchEngine/Elasticsearch/Search.pm | 2 +- opac/opac-browse.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/Koha/SearchEngine/Elasticsearch/Search.pm +++ a/Koha/SearchEngine/Elasticsearch/Search.pm @@ -196,7 +196,7 @@ sub search_compat { # consumers of this expect a name-spaced result, we provide the default # configuration. my %result; - $result{biblioserver}{hits} = $all_results->{hits}; + $result{biblioserver}{hits} = $results->{hits}; $result{biblioserver}{RECORDS} = \@records; return (undef, \%result, $self->_convert_facets($results->{facets}, $expanded_facet)); } --- a/opac/opac-browse.pl +++ a/opac/opac-browse.pl @@ -79,7 +79,7 @@ elsif ( $api eq 'GetResults' ) { my $term = $query->param('term'); my $field = $query->param('field'); - my $builder = Koha::SearchEngine::Elasticsearch::QueryBuilder->new(); + my $builder = Koha::SearchEngine::Elasticsearch::QueryBuilder->new( { index => 'biblios' } ); my $searcher = Koha::SearchEngine::Elasticsearch::Search->new( { index => $Koha::ElasticSearch::BIBLIOS_INDEX } ); --