From 33f122621adcf94ecdbf28dad9a1017d6f9d5c79 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 31 Jan 2020 11:13:47 +0100 Subject: [PATCH] Bug 24552: Be compatible with Search::Elasticsearch 6.00 There is no need to specify the `client` param here because '5_0::Direct' is the default value for Search::Elasticsearch 5.x and it breaks when Search::Elasticsearch 6.x is installed Test plan: 1. Apply the patch 2. Make sure you have Search::Elasticsearch 5.x 3. Reload starman 4. Verify that search works 5. Install Search::Elasticsearch 6.x 6. Reload starman 7. Verify that search works Signed-off-by: Michal Denar Signed-off-by: Ere Maijala Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- Koha/SearchEngine/Elasticsearch.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index 579588a74f..85574cefc0 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -145,7 +145,6 @@ sub get_elasticsearch_params { $es->{index_name} .= '_' . $self->index; $es->{key_prefix} = 'es_'; - $es->{client} //= '5_0::Direct'; $es->{cxn_pool} //= 'Static'; $es->{request_timeout} //= 60; -- 2.39.5