From 6e4aa91568c9f39ed9f31229d45f8fb9bb3339a1 Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Mon, 3 Aug 2015 17:55:54 +1200 Subject: [PATCH] Bug 12478: update to support new Cat::Store::ES Signed-off-by: Nick Clemens Signed-off-by: Jesse Weaver Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- Koha/ElasticSearch.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Koha/ElasticSearch.pm b/Koha/ElasticSearch.pm index 80bd51eb5b..4f268d5674 100644 --- a/Koha/ElasticSearch.pm +++ b/Koha/ElasticSearch.pm @@ -67,8 +67,8 @@ This provides a hashref that contains the parameters for connecting to the ElasicSearch servers, in the form: { - 'servers' => ['127.0.0.1:9200', 'anotherserver:9200'], - 'index_name' => 'koha_instance', + 'nodes' => ['127.0.0.1:9200', 'anotherserver:9200'], + 'index_name' => 'koha_instance_index', } This is configured by the following in the C block in koha-conf.xml: @@ -95,11 +95,11 @@ sub get_elasticsearch_params { delete $es->{server}; if ( ref($server) eq 'ARRAY' ) { - # store it called 'servers' - $es->{servers} = $server; + # store it called 'nodes' (which is used by newer Search::Elasticsearch) + $es->{nodes} = $server; } elsif ($server) { - $es->{servers} = [$server]; + $es->{nodes} = [$server]; } else { die "No elasticsearch servers were specified in koha-conf.xml.\n"; -- 2.39.5