]> git.koha-community.org Git - koha.git/commit
Bug 29856: Make the ES config more flexible
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 12 Jan 2022 08:46:46 +0000 (09:46 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 13 Jan 2022 07:26:26 +0000 (21:26 -1000)
commitcd0d647c61845276b628aaa197d4b9ec057948d8
tree3df18a1cec7dc050136b377dd2dc95e4edfcf144
parent9f8c77e864be9f142f3f0d44e6319f5e4b26cc9a
Bug 29856: Make the ES config more flexible

I need to add a 'request_timeout' entry to the ES configuration to fix some timeout problems on the sandboxes.

Instead of hard coding this new option it seems preferable to be
flexible and allow different options to be passed from the config file.

Test plan:
Add to the $KOHA_CONF, inside the elasticsearch section
  <request_timeout>60</request_timeout>
Rebuild the ES index
  koha-elasticsearch --rebuild kohadev
Change the value of the timeout to 1
Rebuild the index
It should fail (with a quite bad error 'Bad response received when
submitting request to Elasticsearch')

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/SearchEngine/Elasticsearch.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch.t