Bug 33626: Remove invalid params
This patch reformats the params passed to scroll_helper as defined here: https://metacpan.org/pod/Search::Elasticsearch::Client::7_0::Scroll To test: 1 - perl misc/maintenance/compare_es_to_db.pl 2 - It dies: [Param] ** Unknown param (scroll_in_qs) in (search) request. , called from sub Search::Elasticsearch::Client::7_0::Direct::scroll_helper at misc/maintenance/compare_es_to_db.pl line 55. 3 - Apply patch 4 - Repeat 5 - It succeeds! Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commitdaa92a9371) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit38666a8bd7) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
a7058da8df
commit
b0d427115c
|
|
@ -54,14 +54,12 @@ foreach my $index ( ('biblios','authorities') ){
|
|||
# The scroll lets us iterate through, it fetches chunks of 'size' as we move through
|
||||
my $scroll = $es->scroll_helper(
|
||||
index => $searcher->index_name,
|
||||
size => 5000,
|
||||
body => {
|
||||
size => 5000,
|
||||
query => {
|
||||
match_all => {}
|
||||
},
|
||||
stored_fields => []
|
||||
},
|
||||
scroll_in_qs => 1,
|
||||
);
|
||||
|
||||
my @es_ids;
|
||||
|
|
|
|||
Loading…
Reference in New Issue