From db6f15011ac137c13bf16676110adf67d5e0a507 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 15 May 2019 08:41:01 +0200 Subject: [PATCH] Bug 22705: Change default value of cxn_pool to 'Static' 'Static' is the default value of Search::Elasticsearch and for a good reason : it works in most cases, unlike the 'Sniff' option To test: 1 - Apply patch 2 - Edit koha-conf.xml 3 - Add 'Static' to the elasticsearch stanza 4 - Restart all the things! 5 - Reindex ES, it works 6 - Set SearchEngine to ES, try searching 7 - It works! Signed-off-by: Nick Clemens --- Koha/SearchEngine/Elasticsearch.pm | 2 +- etc/koha-conf.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index b46537d112..8a52d574ec 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -144,7 +144,7 @@ sub get_elasticsearch_params { $es->{key_prefix} = 'es_'; $es->{client} //= '5_0::Direct'; - $es->{cxn_pool} //= 'Sniff'; + $es->{cxn_pool} //= 'Static'; $es->{request_timeout} //= 60; return $es; diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml index b6c9d52f13..c8473c6c6b 100644 --- a/etc/koha-conf.xml +++ b/etc/koha-conf.xml @@ -165,6 +165,9 @@ __PAZPAR2_TOGGLE_XML_POST__ localhost:9200 koha___DB_NAME__ + + + Static -- 2.11.0