Bug 12478: update to support new Cat::Store::ES

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Robin Sheat 2015-08-03 17:55:54 +12:00 committed by Brendan Gallagher
parent 374f1e6384
commit bded6d50c7
1 changed files with 5 additions and 5 deletions

View File

@ -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<config> 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";