Lines 1273-1278
sub buildQuery {
Link Here
|
1273 |
my $fuzzy_enabled = C4::Context->preference("QueryFuzzy") || 0; |
1273 |
my $fuzzy_enabled = C4::Context->preference("QueryFuzzy") || 0; |
1274 |
my $remove_stopwords = C4::Context->preference("QueryRemoveStopwords") || 0; |
1274 |
my $remove_stopwords = C4::Context->preference("QueryRemoveStopwords") || 0; |
1275 |
|
1275 |
|
|
|
1276 |
my $QParser = C4::Context->queryparser if (C4::Context->preference('UseQueryParser')); |
1277 |
|
1276 |
my $query = $operands[0]; |
1278 |
my $query = $operands[0]; |
1277 |
my $simple_query = $operands[0]; |
1279 |
my $simple_query = $operands[0]; |
1278 |
|
1280 |
|
Lines 1367-1380
sub buildQuery {
Link Here
|
1367 |
# Add index-specific attributes |
1369 |
# Add index-specific attributes |
1368 |
# Date of Publication |
1370 |
# Date of Publication |
1369 |
if ( $index eq 'yr' ) { |
1371 |
if ( $index eq 'yr' ) { |
1370 |
$operand = "$index,st-numeric=$operand"; |
1372 |
if ($QParser) { |
|
|
1373 |
$index .= ",st-numeric"; |
1374 |
} |
1375 |
else { |
1376 |
$operand = "$index,st-numeric=$operand"; |
1377 |
} |
1371 |
$indexes_set++; |
1378 |
$indexes_set++; |
1372 |
$stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; |
1379 |
$stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; |
1373 |
} |
1380 |
} |
1374 |
|
1381 |
|
1375 |
# Date of Acquisition |
1382 |
# Date of Acquisition |
1376 |
elsif ( $index eq 'acqdate' ) { |
1383 |
elsif ( $index eq 'acqdate' ) { |
1377 |
$operand = "$index,st-date-normalized=$operand"; |
1384 |
if ($QParser) { |
|
|
1385 |
$index .= ",st-date-normalized"; |
1386 |
} |
1387 |
else { |
1388 |
$operand = "$index,st-date-normalized=$operand"; |
1389 |
} |
1378 |
$indexes_set++; |
1390 |
$indexes_set++; |
1379 |
$stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; |
1391 |
$stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = $remove_stopwords = 0; |
1380 |
} |
1392 |
} |
1381 |
- |
|
|