SolrDisMaxQuery::setTieBreaker

Sets Tie Breaker parameter (tie parameter)

説明

public SolrDisMaxQuery SolrDisMaxQuery::setTieBreaker(string $tieBreaker)

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.

戻り値

SolrDisMaxQuery

例1 SolrDisMaxQuery::setTieBreaker example

<?php

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

echo $dismaxQuery;

?>

上の例の出力は以下となります。

defType=edismax&tie=0.1