SolrDisMaxQuery::setTieBreaker

(No version information available, might only be in Git)
Sets Tie Breaker parameter (tie parameter)
public SolrDisMaxQuery SolrDisMaxQuery::setTieBreaker ( string $tieBreaker )

Sets Tie Breaker parameter (tie parameter)

Parameters:
tieBreaker

The tie parameter specifies a float value (which should be something much less than 1) to use as tiebreaker in DisMax queries.

Returns:

SolrDisMaxQuery

Examples:
SolrDisMaxQuery::setTieBreaker() example
<?php

$dismaxQuery = new SolrDisMaxQuery();
$dismaxQuery->setTieBreaker(0.1);

echo $dismaxQuery;

?>

The above example will output:

defType=edismax&tie=0.1
doc_php
2016-02-24 16:11:48
Comments
Leave a Comment

Please login to continue.