]> git.koha-community.org Git - koha.git/commit
Bug 27252: Add deprecation warning, cross_fields pref, and add version to ES info
authorNick Clemens <nick@bywatersolutions.com>
Wed, 16 Dec 2020 18:50:55 +0000 (18:50 +0000)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Sun, 17 Jan 2021 19:45:10 +0000 (20:45 +0100)
commit6697d937c74ffbe4f5948a29f2cf05fe51010102
tree2e3255933c8427068d3011dc0f4fb0c5f6e8fb31
parente9558026b3ad428d2ceefb4d6604e5213eca0637
Bug 27252: Add deprecation warning, cross_fields pref, and add version to ES info

This patch prepares Koha to officially no longer support Elasticsearch 5.X

It adds a new system preference 'ElasticsearchCrossFields' to allow users to choose whether or not
to enable this feature

It updates the about page to add a deprecation warning if a site is running ES5

To test:
 1 - Be running Koha with Elasticsearch 5.X
 2 - Attempt to search
   Error: Unable to perform your search. Please try again.
 3 - Apply patch
 4 - Update database
 5 - Searching works
 6 - Find syspref 'ElasticsearchCrossFields'
 7 - Enable it
 8 - Searching is now broken
 9 - Check the about page
 10 - you can now see the Elasticsearch version
 11 - The systeminformation tab has a deprectaion warning
 12 - Set SearchEngine preference to 'Zebra'
 13 - View the about page - no warnings
 14 - Test again with ES6 - searching should "work" with either pref setting
 15 - There should be no warning on about pages

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit 01f79488a66136bec10ba848634350a185eb24bb)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
about.pl
installer/data/mysql/atomicupdate/Bug_27252_add_ElasticsearchCrossFields_preference.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/about.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref