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

(-)a/C4/Search.pm (-4 / +3 lines)
Lines 751-757 sub _remove_stopwords { Link Here
751
    my @stopwords_removed;
751
    my @stopwords_removed;
752
752
753
    # phrase and exact-qualified indexes shouldn't have stopwords removed
753
    # phrase and exact-qualified indexes shouldn't have stopwords removed
754
    if ( $index !~ m/phr|ext/ ) {
754
    if ( $index !~ m/,(phr|ext)/ ) {
755
755
756
# remove stopwords from operand : parse all stopwords & remove them (case insensitive)
756
# remove stopwords from operand : parse all stopwords & remove them (case insensitive)
757
#       we use IsAlpha unicode definition, to deal correctly with diacritics.
757
#       we use IsAlpha unicode definition, to deal correctly with diacritics.
Lines 1387-1393 sub buildQuery { Link Here
1387
1387
1388
                # Set default structure attribute (word list)
1388
                # Set default structure attribute (word list)
1389
                my $struct_attr = q{};
1389
                my $struct_attr = q{};
1390
                unless ( $indexes_set || !$index || $index =~ /(st-|phr|ext|wrdl|nb|ns)/ ) {
1390
                unless ( $indexes_set || !$index || $index =~ /,(st-|phr|ext|wrdl)/ || $index =~ /^(nb|ns)$/ ) {
1391
                    $struct_attr = ",wrdl";
1391
                    $struct_attr = ",wrdl";
1392
                }
1392
                }
1393
1393
Lines 1405-1411 sub buildQuery { Link Here
1405
                }
1405
                }
1406
1406
1407
                if ($auto_truncation){
1407
                if ($auto_truncation){
1408
					unless ( $index =~ /(st-|phr|ext)/ ) {
1408
					unless ( $index =~ /,(st-|phr|ext)/ ) {
1409
						#FIXME only valid with LTR scripts
1409
						#FIXME only valid with LTR scripts
1410
						$operand=join(" ",map{
1410
						$operand=join(" ",map{
1411
											(index($_,"*")>0?"$_":"$_*")
1411
											(index($_,"*")>0?"$_":"$_*")
1412
- 

Return to bug 10271