From 1ccae1d8441e41b55b37e869d21a521dc274ba15 Mon Sep 17 00:00:00 2001
From: Fridolin Somers <fridolin.somers@biblibre.com>
Date: Mon, 4 Dec 2017 10:04:48 +0100
Subject: [PATCH] Bug 19739: Add default ES configuration to koha-conf.xml
Bug 18571 added default ES configuration for packaging config.
This patch adds it to dev install in koha-conf.xml.
Database name is used in index_name to allow multiple installs.
Test plan :
- Run dev install
- Install ElasticSearch server and Koha deps
- Enable ElasticSearch in Koha
- Check indexing and searching works directly
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
---
etc/koha-conf.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml
index 268175d..0911826 100644
--- a/etc/koha-conf.xml
+++ b/etc/koha-conf.xml
@@ -150,6 +150,11 @@ __PAZPAR2_TOGGLE_XML_POST__
<plack_max_requests>50</plack_max_requests>
<plack_workers>2</plack_workers>
+ <elasticsearch>
+ <server>localhost:9200</server>
+ <index_name>koha___DB_NAME__</index_name>
+ </elasticsearch>
+
<interlibrary_loans>
<!-- Path to where Illbackends are located on the system
- This setting should normally not be touched -->
--
2.1.4