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 <kyle@bywatersolutions.com> Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
84410a1125
commit
54351c4fb3
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue