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

(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-1 / +1 lines)
Lines 483-488 sub _convert_facets { Link Here
483
        $limit = @{ $data->{buckets} } if ( $limit > @{ $data->{buckets} } );
483
        $limit = @{ $data->{buckets} } if ( $limit > @{ $data->{buckets} } );
484
        foreach my $term ( @{ $data->{buckets} }[ 0 .. $limit - 1 ] ) {
484
        foreach my $term ( @{ $data->{buckets} }[ 0 .. $limit - 1 ] ) {
485
            my $t = $term->{key};
485
            my $t = $term->{key};
486
            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
486
            my $c = $term->{doc_count};
487
            my $c = $term->{doc_count};
487
            my $label;
488
            my $label;
488
            if ( exists( $special{$type} ) ) {
489
            if ( exists( $special{$type} ) ) {
489
- 

Return to bug 29561