Koha/misc/maintenance
Nick Clemens 2b32aee825
Bug 22831: Elasticsearch - add a maintenance script for checking DB vs index counts
This script uses Array::Utils and adds a dependency

To test:
 1 - Have Koha with ES running
 2 - Delete some records from ES
     curl -X DELETE "es:9200/koha_kohadev_biblios/data/5"
     curl -X DELETE "es:9200/koha_kohadev_authorities/data/5"
 3 - perl misc/maintenance/compare_es_to_db.pl
 4 - Note you are notified of problems in both indexes
 5 - perl misc/search_tools/rebuild_elastic_search.pl  -a
 6 - perl misc/maintenance/compare_es_to_db.pl
 7 - Note you are only notified about problems in biblios (assuming you don't have other issues)
 8 - perl misc/search_tools/rebuild_elasticsearch.pl  -b
 9 - perl misc/maintenance/compare_es_to_db.pl
10 - Both counts match, no problems

Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi>
Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-23 10:11:09 +00:00
..
auth_show_hidden_data.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
borrowers-force-messaging-defaults.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
check_sysprefs.sh
cmp_sysprefs.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
compare_es_to_db.pl Bug 22831: Elasticsearch - add a maintenance script for checking DB vs index counts 2020-01-23 10:11:09 +00:00
fix_accountlines_date.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
fix_accountlines_rmdupfines_bug8253.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
fix_mysql_constraints.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
fix_tags_weight.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
generate_MARC21Languages.pl Bug 20364: Show languages from MARC21 field 041 in intranet 2019-07-15 11:28:07 +01:00
make_zebra_dom_cfg_from_record_abs Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
process_record_through_filter.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
remove_items_from_biblioitems.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
sanitize_records.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
search_for_data_inconsistencies.pl Bug 21466: Catch any values that should be defined in the AV but are not 2020-01-13 13:57:52 +00:00
touch_all_biblios.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
touch_all_items.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
UNIMARC_fix_collectiontitle.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
UNIMARC_sync_date_created_with_marc_biblio.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
update_authorities.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00