@@ -, +, @@ i.e. Authorites - make heading sortable - default is 110a and 111a for heading - a record with 111a empty will make the sort field empty --- Koha/SearchEngine/Elasticsearch.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Koha/SearchEngine/Elasticsearch.pm +++ a/Koha/SearchEngine/Elasticsearch.pm @@ -328,7 +328,7 @@ sub get_fixer_rules { $options = '-split => 1' unless $marc_field =~ m|_/| || $type eq 'sum'; push @rules, "marc_map('$marc_field','${name}.\$append', $options)"; if ($facet) { - push @rules, "marc_map('$marc_field','${name}__facet', $options)"; + push @rules, "marc_map('$marc_field','${name}__facet.\$append', $options)"; } if ($suggestible) { push @rules, @@ -351,7 +351,7 @@ sub get_fixer_rules { # to do the default thing, which is make it sortable. if ($self->sort_fields()->{$name}) { if ($sort || !defined $sort) { - push @rules, "marc_map('$marc_field','${name}__sort', $options)"; + push @rules, "marc_map('$marc_field','${name}__sort.\$append', $options)"; } } } --