From 3828a2ef32377ec5ea8859bd0485daa4fb669174 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" Signed-off-by: Kyle M Hall Signed-off-by: Julian Maurice Signed-off-by: Martin Renvoize --- Koha/SearchEngine/Elasticsearch.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index a8c774be64..74250f3e48 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