update : 2015.11.03
php.shukuma.com

검색:
 
 
Sets Tie Breaker parameter (tie parameter)

SolrDisMaxQuery::setTieBreaker

(No version information available, might only be in Git)

SolrDisMaxQuery::setTieBreakerSets 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

예제

Example #1 SolrDisMaxQuery::setTieBreaker() example

<?php

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

echo 
$dismaxQuery;

?>

위 예제의 출력:

defType=edismax&tie=0.1