From 05fd2369f01a4d787af25dc41a8c00e6a0597345 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 26 Apr 2022 14:59:59 -1000 Subject: [PATCH] Bug 29077: (follow-up) Use another syntax Signed-off-by: Fridolin Somers --- Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm index 43ee56684d..dba475eb3c 100644 --- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm +++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm @@ -714,7 +714,7 @@ sub _convert_index_fields { my %index_type_convert = ( __default => undef, phr => 'phrase', rtrn => 'right-truncate', 'st-year' => 'st-year' ); - @indexes = grep(/.+/, @indexes); # Remove any blank indexes, i.e. keyword + @indexes = grep { $_ ne q{} } @indexes; # Remove any blank indexes, i.e. keyword # Convert according to our table, drop anything that doesn't convert. # If a field starts with mc- we save it as it's used (and removed) later -- 2.35.3