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 |
- |
|
|