PHP - Manual: SolrDisMaxQuery::setTieBreaker
2024-11-15
(No version information available, might only be in Git)
SolrDisMaxQuery::setTieBreaker — Sets Tie Breaker parameter (tie parameter)
Sets Tie Breaker parameter (tie parameter)
tieBreaker
The tie parameter specifies a float value (which should be something much less than 1) to use as tiebreaker in DisMax queries.
示例 #1 SolrDisMaxQuery::setTieBreaker() example
<?php
$dismaxQuery = new SolrDisMaxQuery();
$dismaxQuery->setTieBreaker(0.1);
echo $dismaxQuery;
?>
以上例程会输出:
defType=edismax&tie=0.1
官方地址:https://www.php.net/manual/en/solrdismaxquery.settiebreaker.php