]> 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)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 27 Mar 2019 17:52:39 +0000 (17:52 +0000)
commit65f35447e93008810cec3eba63a286b9940d5824
treec2fecab68e8b310b61d1bfa5bcd95ac60aeb8a26
parenta993bd3843fdfcf3a7f2df916299b32d4601b879
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>
Koha/SearchEngine/Elasticsearch.pm