From 72f013937c7f616554a25f57ef61c9b7f69037be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Tue, 5 May 2020 19:21:15 +0200 Subject: [PATCH] Bug 25325: ElasticSearch mapping export lacks staff_client/opac fields Run test: prove t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t Or: Run export_elasticsearch_mappings.pl script. See that opac/staff_client fields are exorted. Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- Koha/SearchEngine/Elasticsearch.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index 6616671325..202ef7e858 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -282,6 +282,8 @@ sub raw_elasticsearch_mappings { $mappings->{ $marc_map->index_name }{ $search_field->name }{type} = $search_field->type; $mappings->{ $marc_map->index_name }{ $search_field->name }{facet_order} = $search_field->facet_order if defined $search_field->facet_order; $mappings->{ $marc_map->index_name }{ $search_field->name }{weight} = $search_field->weight if defined $search_field->weight; + $mappings->{ $marc_map->index_name }{ $search_field->name }{opac} = $search_field->opac if defined $search_field->opac; + $mappings->{ $marc_map->index_name }{ $search_field->name }{staff_client} = $search_field->staff_client if defined $search_field->staff_client; push (@{ $mappings->{ $marc_map->index_name }{ $search_field->name }{mappings} }, { -- 2.39.5