From 1e3241b57ca85e4da90bfb47da091700da3300ed Mon Sep 17 00:00:00 2001 From: Matthias Meusburger 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