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 '<cxn_pool>Static</cxn_pool>' 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 <nick@bywatersolutions.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
ae2f21e74d
commit
9532a3edea
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -165,6 +165,9 @@ __PAZPAR2_TOGGLE_XML_POST__
|
|||
<elasticsearch>
|
||||
<server>localhost:9200</server>
|
||||
<index_name>koha___DB_NAME__</index_name>
|
||||
|
||||
<!-- See https://metacpan.org/pod/Search::Elasticsearch#cxn_pool -->
|
||||
<cxn_pool>Static</cxn_pool>
|
||||
</elasticsearch>
|
||||
<!-- Uncomment the following line if you want to override the Elasticsearch default index settings -->
|
||||
<!-- <elasticsearch_index_config>__KOHA_CONF_DIR__/searchengine/elasticsearch/index_config.yaml</elasticsearch_index_config> -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue