Bugzilla – Attachment 90082 Details for
Bug 22760
catalogue search yields no results if queryparser is on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22760: Correct parseQuery regex to match full words when QueryParser is on
Bug-22760-Correct-parseQuery-regex-to-match-full-w.patch (text/plain), 975 bytes, created by
Bin Wen
on 2019-05-24 19:00:35 UTC
(
hide
)
Description:
Bug 22760: Correct parseQuery regex to match full words when QueryParser is on
Filename:
MIME Type:
Creator:
Bin Wen
Created:
2019-05-24 19:00:35 UTC
Size:
975 bytes
patch
obsolete
>From cb99bd5a4402ac975230d50925f9d0c00345d411 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Mika=C3=ABl=20Olangcay=20Brisebois?= > <mikael.olangcay-brisebois@inLibro.com> >Date: Tue, 23 Apr 2019 12:25:10 -0400 >Subject: [PATCH] Bug 22760: Correct parseQuery regex to match full words when > QueryParser is on > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >Signed-off-by: Bin Wen <bin.wen@inlibro.com> >--- > C4/Search.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 559abea4ba..b4926d4d43 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1396,7 +1396,7 @@ sub parseQuery { > } > if ( scalar(@sort_by) > 0 ) { > my $modifier_re = >- '#(' . join( '|', @{ $QParser->modifiers } ) . ')'; >+ '#(' . join( '|', @{ $QParser->modifiers } ) . ')\b'; > $query =~ s/$modifier_re//g; > foreach my $modifier (@sort_by) { > $query .= " #$modifier"; >-- >2.17.1
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 22760
:
88536
|
89968
| 90082