]> git.koha-community.org Git - koha.git/commit
Bug 22831: Elasticsearch - add a maintenance script for checking DB vs index counts
authorNick Clemens <nick@bywatersolutions.com>
Thu, 2 May 2019 12:24:08 +0000 (12:24 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 7 Feb 2020 23:38:53 +0000 (23:38 +0000)
commit35af73ae3c18061706d34775f35f0869a29284f2
tree44f4ab7d0fb4d3340a1b366295e7aeb236340eb3
parent269bbbf2b670f2985febfa14554cd8a6d5b03620
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>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
C4/Installer/PerlDependencies.pm
misc/maintenance/compare_es_to_db.pl [new file with mode: 0644]