Bug 36436

Summary: Error creating biblio when using ElasticSearch
Product: Koha Reporter: Nicholas van Oudtshoorn <vanoudt>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook, m.de.rooy, roman.dolny
Version: 23.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nicholas van Oudtshoorn 2024-03-27 07:14:30 UTC
We've run into an issue where attempting to create new biblios while using ElasticSearch. (Zebra works fine).

A bit of troubleshooting finds that it is failing in C4::Biblio in the LinkBibHeadingsToAuthorities function. The logs warn:

Exception 'Koha::Exceptions::Elasticsearch::BadResponse' thrown 'Bad response received when submitting request to Elasticsearch' with details => [http://localhost:9200]-[400] [action_request_validation_exception] Validation Failed: 1: type is missing;, type => Request

I'm a bit out of my depth here; does anyone have any suggestions? For now, I've headed back to Zebra, but would rather stay with ElasticSearch!
Comment 1 David Cook 2024-04-14 23:40:47 UTC
I think your Elasticsearch is too old. That sounds like an error messaging coming from Elasticsearch 6. You need to be on Elasticsearch  7+.
Comment 2 David Cook 2024-04-14 23:42:12 UTC
I think you can find more info about it here: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html#_what_are_mapping_types