Bug 36436 - Error creating biblio when using ElasticSearch
Summary: Error creating biblio when using ElasticSearch
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 23.11
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 07:14 UTC by Nicholas van Oudtshoorn
Modified: 2024-12-23 08:07 UTC (History)
3 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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