From e5cf4065d11d850e89b614148be58f766638698d 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 Signed-off-by: Joy Nelson (cherry picked from commit a3143506b2edf7ffca185e650c18b89dc249423f) Signed-off-by: Lucas Gass --- Koha/SearchEngine/Elasticsearch.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index d9fd093cd7..ac6619a68a 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -143,7 +143,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