Lines 112-117
sub FindDuplicate {
Link Here
|
112 |
$titleindex = 'title|exact'; |
112 |
$titleindex = 'title|exact'; |
113 |
$authorindex = 'author|exact'; |
113 |
$authorindex = 'author|exact'; |
114 |
$op = '&&'; |
114 |
$op = '&&'; |
|
|
115 |
$QParser->custom_data->{'QueryAutoTruncate'} = C4::Context->preference('QueryAutoTruncate'); |
115 |
} else { |
116 |
} else { |
116 |
$titleindex = 'ti,ext'; |
117 |
$titleindex = 'ti,ext'; |
117 |
$authorindex = 'au,ext'; |
118 |
$authorindex = 'au,ext'; |
Lines 233-238
sub SimpleSearch {
Link Here
|
233 |
|
234 |
|
234 |
my $QParser; |
235 |
my $QParser; |
235 |
$QParser = C4::Context->queryparser if (C4::Context->preference('UseQueryParser') && ! ($query =~ m/\w,\w|\w=\w/)); |
236 |
$QParser = C4::Context->queryparser if (C4::Context->preference('UseQueryParser') && ! ($query =~ m/\w,\w|\w=\w/)); |
|
|
237 |
if ($QParser) { |
238 |
$QParser->custom_data->{'QueryAutoTruncate'} = C4::Context->preference('QueryAutoTruncate'); |
239 |
} |
236 |
|
240 |
|
237 |
# Initialize & Search Zebra |
241 |
# Initialize & Search Zebra |
238 |
for ( my $i = 0 ; $i < @servers ; $i++ ) { |
242 |
for ( my $i = 0 ; $i < @servers ; $i++ ) { |
Lines 1177-1182
sub parseQuery {
Link Here
|
1177 |
|
1181 |
|
1178 |
if ($QParser) |
1182 |
if ($QParser) |
1179 |
{ |
1183 |
{ |
|
|
1184 |
$QParser->custom_data->{'QueryAutoTruncate'} = C4::Context->preference('QueryAutoTruncate'); |
1180 |
$query = ''; |
1185 |
$query = ''; |
1181 |
for ( my $ii = 0 ; $ii <= @operands ; $ii++ ) { |
1186 |
for ( my $ii = 0 ; $ii <= @operands ; $ii++ ) { |
1182 |
next unless $operands[$ii]; |
1187 |
next unless $operands[$ii]; |