]> git.koha-community.org Git - koha.git/commit
Bug 16838: ES - install mappings for new installs
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 29 Sep 2016 09:18:27 +0000 (10:18 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 11 Oct 2016 01:01:52 +0000 (01:01 +0000)
commita36b6430195310b5198077dd50cdb436ef07ce37
tree60a17d46b30a5f12292f381ef197ef4d4d403bc9
parentb588babdb23bfdc1163864a26c36a61bf8a39ae5
Bug 16838: ES - install mappings for new installs

The yaml file is not used to populate ES mapping tables (search_field,
search_marc_map and search_marc_to_field) when doing a fresh install.

We need to insert them, otherwise ES will be unusable.

Test plan:
Create a new install and confirm that the ES tables (search_field,
search_marc_map and search_marc_to_field) are correctly populated.

Bonus points: Use an older DB (prior to 3.23.00.050), execute the
updatedatabase.pl script and confirm that the ES table are correctly
populated

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Koha/ElasticSearch.pm
installer/data/mysql/updatedatabase.pl
installer/install.pl