View | Details | Raw Unified | Return to bug 29561
Collapse All | Expand All

(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-2 / +1 lines)
Lines 492-498 sub _convert_facets { Link Here
492
        $limit = @{ $data->{buckets} } if ( $limit > @{ $data->{buckets} } );
492
        $limit = @{ $data->{buckets} } if ( $limit > @{ $data->{buckets} } );
493
        foreach my $term ( @{ $data->{buckets} }[ 0 .. $limit - 1 ] ) {
493
        foreach my $term ( @{ $data->{buckets} }[ 0 .. $limit - 1 ] ) {
494
            my $t = $term->{key};
494
            my $t = $term->{key};
495
            next unless $t; # FIXME Currently we cannot search for an empty faceted field i.e. ln:"" to find records missing languages, though ES does count them correctly
495
            next unless length($t); # FIXME Currently we cannot search for an empty faceted field i.e. ln:"" to find records missing languages, though ES does count them correctly
496
            my $c = $term->{doc_count};
496
            my $c = $term->{doc_count};
497
            my $label;
497
            my $label;
498
            if ( exists( $special{$type} ) ) {
498
            if ( exists( $special{$type} ) ) {
499
- 

Return to bug 29561