From d31dfe994d977e8129c025dd5c369d571cc984b0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 11 Feb 2021 14:56:57 +0100 Subject: [PATCH] Bug 22824: Fix ES reindex koha-elastic --rebuild was failing with Unable to update mappings for index "koha_kohadev_biblios". Reason was: "Could not convert [marc_data.index] to boolean" --- Koha/SearchEngine/Elasticsearch.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index ce35958b06..c55f4b74bd 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -312,6 +312,7 @@ sub _get_elasticsearch_field_config { if (!defined $settings) { my $config_file = C4::Context->config('elasticsearch_field_config'); $config_file ||= C4::Context->config('intranetdir') . '/admin/searchengine/elasticsearch/field_config.yaml'; + local $YAML::XS::Boolean = 'JSON::PP'; $settings = YAML::XS::LoadFile( $config_file ); } -- 2.20.1