Bugzilla – Attachment 134006 Details for
Bug 29077
Warns when searching blank index
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29077: (follow-up) Use another syntax
Bug-29077-follow-up-Use-another-syntax.patch (text/plain), 1.13 KB, created by
Fridolin Somers
on 2022-04-27 01:05:26 UTC
(
hide
)
Description:
Bug 29077: (follow-up) Use another syntax
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-04-27 01:05:26 UTC
Size:
1.13 KB
patch
obsolete
>From 05fd2369f01a4d787af25dc41a8c00e6a0597345 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 26 Apr 2022 14:59:59 -1000 >Subject: [PATCH] Bug 29077: (follow-up) Use another syntax > >Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29077
:
125132
|
133515
|
133886
| 134006