From 2e3d7490c670b8f9b90b04cc5300601d33aeda11 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 7 Nov 2024 08:15:29 -0300 Subject: [PATCH] Bug 38386: Make compare_es_to_db.pl not retrieve the records from ES Signed-off-by: Tomas Cohen Arazi --- misc/maintenance/compare_es_to_db.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/misc/maintenance/compare_es_to_db.pl b/misc/maintenance/compare_es_to_db.pl index 5b12814b419..b79f7397894 100755 --- a/misc/maintenance/compare_es_to_db.pl +++ b/misc/maintenance/compare_es_to_db.pl @@ -53,12 +53,11 @@ foreach my $index ( ('biblios','authorities') ){ # Now we get all the ids from Elasticsearch # The scroll lets us iterate through, it fetches chunks of 'size' as we move through my $scroll = $es->scroll_helper( - index => $searcher->index_name, - body => { - size => 5000, - query => { - match_all => {} - }, + index => $searcher->index_name, + _source => 0, + body => { + size => 5000, + query => { match_all => {} }, }, ); -- 2.47.0