From aeca214b7c2d178f7d2544ec5102180c68e25d53 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 15 Apr 2025 11:49:12 +0000 Subject: [PATCH] Bug 39636: Update curl link With the move to the latest ES versions we got rid of 'data' type - we need to use '_doc' To test: 1 - Delete a record from the DB directly DELETE FROM biblio WHERE biblionumber=45; 2 - perl misc/maintenance/compare_es_to_db.pl 3 - Try the curl command - it doesn't work 4 - Apply this patch 5 - perl misc/maintenance/compare_es_to_db.pl 6 - Try the curl command - it now fetches the record --- misc/maintenance/compare_es_to_db.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/maintenance/compare_es_to_db.pl b/misc/maintenance/compare_es_to_db.pl index f2196768c1b..f87ac60afcb 100755 --- a/misc/maintenance/compare_es_to_db.pl +++ b/misc/maintenance/compare_es_to_db.pl @@ -153,7 +153,7 @@ foreach my $index (@indices) { print "Records that exist in ES but not in Koha\n"; for my $problem (@es_problems) { print " #$problem"; - print " Enter this command to view record: curl $es_base/data/$problem?pretty=true\n"; + print " Enter this command to view record: curl $es_base/_doc/$problem?pretty=true\n"; } } -- 2.39.5