Lines 297-303
sub reset_elasticsearch_mappings {
Link Here
|
297 |
# sort_fields isn't set, then it'll generate it. |
297 |
# sort_fields isn't set, then it'll generate it. |
298 |
sub sort_fields { |
298 |
sub sort_fields { |
299 |
my $self = shift; |
299 |
my $self = shift; |
300 |
|
|
|
301 |
if (@_) { |
300 |
if (@_) { |
302 |
$self->_sort_fields_accessor(@_); |
301 |
$self->_sort_fields_accessor(@_); |
303 |
return; |
302 |
return; |
Lines 348-354
sub get_fixer_rules {
Link Here
|
348 |
push @rules, "sum('$name')"; |
347 |
push @rules, "sum('$name')"; |
349 |
} |
348 |
} |
350 |
if ($self->sort_fields()->{$name}) { |
349 |
if ($self->sort_fields()->{$name}) { |
351 |
push @rules, "marc_map('$marc_field','${name}__sort.\$append', $options)"; |
350 |
if ($sort || !defined $sort) { |
|
|
351 |
push @rules, "marc_map('$marc_field','${name}__sort.\$append', $options)"; |
352 |
} |
352 |
} |
353 |
} |
353 |
} |
354 |
} |
354 |
); |
355 |
); |
355 |
- |
|
|