From 0a5dc86b7f2af0059c8fb582ee37a29dfa717f0a Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 10 May 2017 16:04:36 -0300 Subject: [PATCH] Bug 18571: Add default ES configuration to koha-conf-site.xml.in This patch adds a default configuration entry for elasticsearch. It will add localhost:9200 to the server subsection, and koha_instance (replacing instance for the corresponding instance name) for the namespace. To test: - Apply the patch - Copy the file to the /etc/koha dir: $ sudo cp kohaclone/debian/templates/koha-conf-site.xml.in /etc/koha - Create a new instance: $ sudo koha-create --create-db test => SUCCESS: /etc/koha/sites/test/koha-conf.xml includes the mentioned section: localhost:9200 koha_test - Sign off :-D Note: As the use of ES is syspref driven, this default entry doesn't have any use until ES is installed and SearchEngine set to Elasticsearch. So it doesn't hurt but will help end users test the ES integration. Advanced users will take care of this config entry manually (pointing to external servers/clusters, etc). --- debian/templates/koha-conf-site.xml.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in index 2add4aa..8e8204f 100644 --- a/debian/templates/koha-conf-site.xml.in +++ b/debian/templates/koha-conf-site.xml.in @@ -322,5 +322,10 @@ __END_SRU_PUBLICSERVER__ 50 2 + + localhost:9200 + koha___KOHASITE__ + + -- 2.7.4