[Koha-bugs] [Bug 33108] We need a way to launch the ES indexer automatically

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 1 14:28:20 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33108

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 147560
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=147560&action=edit
Bug 33108: Add is_elasticsearch_enabled method to tools

This patch adds a way to query if an instance is configured to use ES.

To test:
1. Apply this patch
2. Enter KTD as root:
   $ ktd --shell --root
3. Run:
   $ source /kohadevbox/koha/debian/scripts/koha-functions.sh
4. Run:
   $ is_elasticsearch_enabled hola
=> FAIL: Instance hola doesn't exist (hopefully :-P)
5. Have the SearchEngine syspref set to Elasticsearch
6. Run:
   $ is_elasticsearch_enabled kohadev && echo "it is" || echo "it isn't"
=> SUCCESS: "it is" gets printed
7. Set SearchEngine to Zebra
8. Repeat 6
=> SUCCESS: "it isn't" gets printed
9. Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list