Bugzilla – Attachment 97323 Details for
Bug 24143
buildQuery should disable Query* on identifier search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24143: Disable QueryXXX when searching on a identifier.
Bug-24143-Disable-QueryXXX-when-searching-on-a-ide.patch (text/plain), 1.46 KB, created by
Matthias Meusburger
on 2020-01-13 16:10:02 UTC
(
hide
)
Description:
Bug 24143: Disable QueryXXX when searching on a identifier.
Filename:
MIME Type:
Creator:
Matthias Meusburger
Created:
2020-01-13 16:10:02 UTC
Size:
1.46 KB
patch
obsolete
>From ed8b3ffba9ef003b5c391441a7d3848f3de7520f Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Wed, 20 Nov 2019 10:18:01 +0100 >Subject: [PATCH] Bug 24143: Disable QueryXXX when searching on a identifier. > >Using the ident or identifier-standard index should not involve >any of the following features: > > - QueryAutoTruncate > - QueryFuzzy > - QueryStemming > - QueryWeightFields >--- > C4/Search.pm | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 9f39b50..cd1f020 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1564,7 +1564,7 @@ sub buildQuery { > $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = 0; > } > # ISBN,ISSN,Standard Number, don't need special treatment >- elsif ( $index eq 'nb' || $index eq 'ns' || $index eq 'hi' ) { >+ elsif ( $index eq 'nb' || $index eq 'ns' || $index eq 'hi' || $index eq 'sn' ) { > ( > $stemming, $auto_truncation, > $weight_fields, $fuzzy_enabled >@@ -1578,6 +1578,10 @@ sub buildQuery { > } > } > } >+ elsif ( $index =~ /^ident/i ) { >+ $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = 0; >+ } >+ > > if(not $index){ > $index = 'kw'; >-- >2.7.4
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 24143
:
95927
|
97311
| 97323 |
109185
|
109186