From 32ea7a6378373386658e073f0bdabf309d6c8227 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Tue, 6 Aug 2019 08:03:18 +0000 Subject: [PATCH] Bug 23204: Export field weights Signed-off-by: Bernardo Gonzalez Kriegel Signed-off-by: Jonathan Druart 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 31ab470864..0863faf307 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -273,6 +273,7 @@ sub raw_elasticsearch_mappings { $mappings->{ $marc_map->index_name }{ $search_field->name }{label} = $search_field->label; $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; + $mappings->{ $marc_map->index_name }{ $search_field->name }{weight} = $search_field->weight || undef; push (@{ $mappings->{ $marc_map->index_name }{ $search_field->name }{mappings} }, { -- 2.39.5