Bugzilla – Attachment 151724 Details for
Bug 33842
Search for authid not returning right results with QueryAutoTruncate ON
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't add * when searching an authid
0001-Fix-Bug-33842-Search-for-authid-not-returning-right-.patch (text/plain), 1.04 KB, created by
Adolfo RodrÃguez Taboada
on 2023-05-26 07:57:46 UTC
(
hide
)
Description:
Don't add * when searching an authid
Filename:
MIME Type:
Creator:
Adolfo RodrÃguez Taboada
Created:
2023-05-26 07:57:46 UTC
Size:
1.04 KB
patch
obsolete
>From 527cf543af43d7b4817b94c9868bb45aea0e634f Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Adolfo=20Rodr=C3=ADguez?= <adolfo.rodriguez@xercode.es> >Date: Fri, 26 May 2023 09:50:53 +0200 >Subject: [PATCH 1/1] Fix - Bug 33842 - Search for authid not returning right > results with QueryAutoTruncate ON > >--- > 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 e57d1d7b60..580c103d20 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -1209,7 +1209,7 @@ sub _truncate_terms { > # Append '*' to words if needed, ie. if it ends in a word character and is not a keyword > my @terms = map { > my $w = $_; >- (/\W$/ or grep {lc($w) eq $_} qw/and or not/) ? $_ : "$_*"; >+ (/\W$/ or $w =~ /^(koha-auth-number).*$/ or grep {lc($w) eq $_} qw/and or not/) ? $_ : "$_*"; > } @words; > > return join ' ', @terms; >-- >2.30.2 >
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 33842
: 151724