Bugzilla – Attachment 150289 Details for
Bug 33626
compare_es_to_db.pl does not work with Search::Elasticsearch 7.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33626: Remove invalid params
Bug-33626-Remove-invalid-params.patch (text/plain), 1.41 KB, created by
Nick Clemens (kidclamp)
on 2023-04-27 11:27:15 UTC
(
hide
)
Description:
Bug 33626: Remove invalid params
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-04-27 11:27:15 UTC
Size:
1.41 KB
patch
obsolete
>From f56fbf84b7aadb4c890a00b3706ae3cc87d72288 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 27 Apr 2023 11:23:03 +0000 >Subject: [PATCH] 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! >--- > misc/maintenance/compare_es_to_db.pl | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >diff --git a/misc/maintenance/compare_es_to_db.pl b/misc/maintenance/compare_es_to_db.pl >index 2fb67e3629..5b12814b41 100755 >--- a/misc/maintenance/compare_es_to_db.pl >+++ b/misc/maintenance/compare_es_to_db.pl >@@ -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; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33626
:
150289
|
150640