]> git.koha-community.org Git - koha.git/commit
Bug 21974: Make Elasticsearch connection settings configurable
authorEre Maijala <ere.maijala@helsinki.fi>
Mon, 17 Dec 2018 14:22:58 +0000 (16:22 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 1 Apr 2019 10:42:17 +0000 (11:42 +0100)
commit9ef8a3e328e281bef98fe33a50f975322c26c25a
treec22c685e17f52f0ef87c6a6d330a65ea889cae55
parentc1d1880aeaf58052bc7782b30f57745a4bb78045
Bug 21974: Make Elasticsearch connection settings configurable

Default settings are appended in get_elasticsearch_params so that there's a central place for them. Defaults can be overridden in koha-conf.xml.

Test plan:

1. Verify that searches still work with the patch applied.
2. Verify that search fails after adding the following under <elasticsearch> in koha-conf.xml:
<cxn_pool>Static</cxn_pool>
3. Verify that search fails after adding the following under <elasticsearch> in koha-conf.xml:
<cxn_pool>FOO</cxn_pool>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 65f35447e93008810cec3eba63a286b9940d5824)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/SearchEngine/Elasticsearch.pm