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

(-)a/C4/Search.pm (-2 / +7 lines)
Lines 1661-1666 sub buildQuery { Link Here
1661
1661
1662
                warn "FIELD WEIGHTED OPERAND: >$weighted_operand<" if $DEBUG;
1662
                warn "FIELD WEIGHTED OPERAND: >$weighted_operand<" if $DEBUG;
1663
1663
1664
                #Use relevance ranking when not using a weighted query (which adds relevance ranking of its own)
1665
1666
                #N.B. Truncation is mutually exclusive with Weighted Queries,
1667
                #so even if QueryWeightFields is turned on, QueryAutoTruncate will turn it off, thus
1668
                #the need for this relevance wrapper.
1669
                $operand = "(rk=($operand))" unless $weight_fields;
1670
1664
                ($query,$query_cgi,$query_desc,$previous_operand) = _build_initial_query({
1671
                ($query,$query_cgi,$query_desc,$previous_operand) = _build_initial_query({
1665
                    query => $query,
1672
                    query => $query,
1666
                    query_cgi => $query_cgi,
1673
                    query_cgi => $query_cgi,
Lines 1673-1679 sub buildQuery { Link Here
1673
                    indexes_set => $indexes_set,
1680
                    indexes_set => $indexes_set,
1674
                    previous_operand => $previous_operand,
1681
                    previous_operand => $previous_operand,
1675
                });
1682
                });
1676
1677
            }    #/if $operands
1683
            }    #/if $operands
1678
        }    # /for
1684
        }    # /for
1679
    }
1685
    }
1680
- 

Return to bug 12430