From 53db204134f9bea063cdd0f70be7b557328a2b90 Mon Sep 17 00:00:00 2001 From: danyonsewell Date: Mon, 1 Jul 2024 05:23:43 +0000 Subject: [PATCH] Bug 35618 - catalogue/showelastic.pl uses deprecated/removed parameter "type" [ES7.x]i it appears despite "type" being depreciated it's still required in some cases. [2024/07/01 14:24:52] [WARN] [Param] ** Missing required param (type) in (get) request. , called from sub Search::Elasticsearch::Role::Client::Direct::__ANON__ at /usr/share/koha/intranet/cgi-bin/catalogue/showelastic.pl line 61. subbing it out with type '_doc' seems to do the trick --- catalogue/showelastic.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/showelastic.pl b/catalogue/showelastic.pl index d9b2c53dbd4..5de55fdeb9f 100755 --- a/catalogue/showelastic.pl +++ b/catalogue/showelastic.pl @@ -60,7 +60,7 @@ my @es_fields; try { $es_record = $es->get_elasticsearch()->get({ index => $es->index_name, - type => 'data', + type => '_doc', id => $biblionumber, }); } -- 2.39.2