NoZera don't handle fuzzy/stemming/weight
so ignoring those sysprefs Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
1cc21be002
commit
6da5ad063f
1 changed files with 6 additions and 0 deletions
|
@ -698,6 +698,12 @@ sub buildQuery {
|
|||
my $auto_truncation = C4::Context->preference("QueryAutoTruncate") || 0;
|
||||
my $weight_fields = C4::Context->preference("QueryWeightFields") || 0;
|
||||
my $fuzzy_enabled = C4::Context->preference("QueryFuzzy") || 0;
|
||||
# no stemming/weight/fuzzy in NoZebra
|
||||
if (C4::Context->preference("NoZebra")) {
|
||||
$stemming =0;
|
||||
$weight_fields=0;
|
||||
$fuzzy_enabled=0;
|
||||
}
|
||||
my $remove_stopwords = C4::Context->preference("QueryRemoveStopwords") || 0;
|
||||
|
||||
my $query = $operands[0];
|
||||
|
|
Loading…
Reference in a new issue