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

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2025-04-15 11:49:12 +00:00 committed by Lucas Gass
parent ad9648528c
commit 4593392539
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,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";
}
}