View | Details | Raw Unified | Return to bug 5651
Collapse All | Expand All

(-)a/C4/Search.pm (-2 / +3 lines)
Lines 1120-1129 sub buildQuery { Link Here
1120
                my $indexes_set;
1120
                my $indexes_set;
1121
1121
1122
# If the user is sophisticated enough to specify an index, turn off field weighting, stemming, and stopword handling
1122
# If the user is sophisticated enough to specify an index, turn off field weighting, stemming, and stopword handling
1123
                if ( $operands[$i] =~ /(:|=)/ || $scan ) {
1123
                if ( $operands[$i] =~ /\w(:|=)/ || $scan ) {
1124
                    $weight_fields    = 0;
1124
                    $weight_fields    = 0;
1125
                    $stemming         = 0;
1125
                    $stemming         = 0;
1126
                    $remove_stopwords = 0;
1126
                    $remove_stopwords = 0;
1127
                } else {
1128
                    $operands[$i] =~ s/\?/{?}/g; # need to escape question marks
1127
                }
1129
                }
1128
                my $operand = $operands[$i];
1130
                my $operand = $operands[$i];
1129
                my $index   = $indexes[$i];
1131
                my $index   = $indexes[$i];
1130
- 

Return to bug 5651