From 8433d592c86cd61e1f7ddfa26f6e8d1c475d6248 Mon Sep 17 00:00:00 2001
From: Fridolin Somers <fridolin.somers@biblibre.com>
Date: Fri, 26 Jul 2024 15:28:38 +0200
Subject: [PATCH] Bug 37494: Fix catalogue/showelastic.pl missing parameter
 "type"

In Bug 35618 Danyon provides a counter patch that fixes
catalogue/showelastic.pl missing parameter "type".

ES 7/8 uses '_doc'

Test plan :
1) Use Elasticsearch search engine
2) Search whatever you want in Search the catalog and select a notice
3) Click on "Elasticsearch Record :" link
=> Without patch you have HTTP 404
=> With patch you see datas in JSON
---
 catalogue/showelastic.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/catalogue/showelastic.pl b/catalogue/showelastic.pl
index 0b19704c5b..5de55fdeb9 100755
--- a/catalogue/showelastic.pl
+++ b/catalogue/showelastic.pl
@@ -60,6 +60,7 @@ my @es_fields;
 try {
     $es_record = $es->get_elasticsearch()->get({
         index => $es->index_name,
+        type  => '_doc',
         id    => $biblionumber,
     });
 }
-- 
2.45.2