Bugzilla – Attachment 95927 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), 935 bytes, created by
Matthias Meusburger
on 2019-12-02 16:08:21 UTC
(
hide
)
Description:
Bug 24143: Disable QueryXXX when searching on a identifier.
Filename:
MIME Type:
Creator:
Matthias Meusburger
Created:
2019-12-02 16:08:21 UTC
Size:
935 bytes
patch
obsolete
>From 1e3241b57ca85e4da90bfb47da091700da3300ed 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 | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 9f39b50..d51ff31 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -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