Bug 20248: Improve Elasticsearch mappings UI and rebuild_elastic_search.pl.
authorEre Maijala <ere.maijala@helsinki.fi>
Mon, 19 Feb 2018 14:54:39 +0000 (16:54 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 22 Aug 2018 14:47:43 +0000 (14:47 +0000)
commit23f78a6c2a6557aac557ae65261bce0e7baced61
tree57da8b74549b709a18d160c8a65738373a6624bf
parenta11b1083bff404b57f3ac959489f0a2b7a94f6e1
Bug 20248: Improve Elasticsearch mappings UI and rebuild_elastic_search.pl.

Improvements:
1) Mappings UI now has button that allows one to reset the mappings.
2) Mappings UI displays the items in alphabetical order.
3) Indexing script drops and recreates the index right away, which
helps prevent ES from autocreating a bad index if someone does something
while the first batch of records is being processed.
4) Indexing script has nicer output.

To test:
1) Change mappings.yaml file
2) Reset mappings in UI in mappings.pl
3) Verify the mappings have been changed in UI
4) The field order is alphabetical
5) Rebuild script has clean output
6) Run test t/db_dependent/Koha_Elasticsearch_Indexer.t

Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch/Indexer.pm
admin/searchengine/elasticsearch/mappings.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt
misc/search_tools/rebuild_elastic_search.pl
t/db_dependent/Koha_Elasticsearch_Indexer.t