PHP
Solr

SolrDisMaxQuery::setTieBreaker

SolrDisMaxQuery::setTieBreaker

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

SolrDisMaxQuery::setTieBreaker — Sets Tie Breaker parameter (tie parameter)

Description

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.

Return Values

SolrDisMaxQuery

Examples

Example #1 SolrDisMaxQuery::setTieBreaker() example

<?php $dismaxQuery = new SolrDisMaxQuery( $dismaxQuery->setTieBreaker(0.1 echo $dismaxQuery; ?>

The above example will output:

defType=edismax&tie=0.1

← SolrDisMaxQuery::setQueryPhraseSlop

SolrDisMaxQuery::setTrigramPhraseFields →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/solrdismaxquery.settiebreaker.php