Bug 23137: Add reset option to rebuild_elasticsearch.pl
authorNick Clemens <nick@bywatersolutions.com>
Thu, 19 Mar 2020 16:30:29 +0000 (16:30 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 29 Apr 2020 16:01:55 +0000 (17:01 +0100)
commit9fa6bb64014f6474e86846985609d8850e0839df
tree83fc014202df712f5accccf732ff04ca4c089b55
parentfeab2cbeb2179589c74524135bd2ff57b660a8e1
Bug 23137: Add reset option to rebuild_elasticsearch.pl

Setup:
1 - Be using Elasticsearch
2 - Reload mappings from the db
    Admin->Search configuration
    Reset Mappings
3 - Reindex ES and confirm searching is working

To test:
1 - Apply patch
2 - Alter your mappings file for elastic (just change a description for a field)
3 - perl misc/search_tools/rebuild_elasticsearch.pl -r -v
    Verbose not necessary, but good for letting you know things are progressing
4 - Confirm the mapping change shows in the interface
5 - Confirm reindex worked and searching is working

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
misc/search_tools/rebuild_elasticsearch.pl