From b3c860424aa9ec3f16e665ef4f4db3e36cfa1b9f Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 12 Oct 2016 11:44:48 +0000 Subject: [PATCH] Bug 14567 - (Rebase followups) --- Koha/SearchEngine/Elasticsearch/Search.pm | 2 +- opac/opac-browse.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/SearchEngine/Elasticsearch/Search.pm b/Koha/SearchEngine/Elasticsearch/Search.pm index 8035bc3..3db56fa 100644 --- a/Koha/SearchEngine/Elasticsearch/Search.pm +++ b/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)); } diff --git a/opac/opac-browse.pl b/opac/opac-browse.pl index eb242f1..40b528d 100755 --- a/opac/opac-browse.pl +++ b/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 } ); -- 2.1.4