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