SolrDisMaxQuery
PHP Manual

SolrDisMaxQuery::setTieBreaker

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

SolrDisMaxQuery::setTieBreakerSets Tie Breaker parameter (tie parameter)

Description

public SolrDisMaxQuery SolrDisMaxQuery::setTieBreaker ( string $tieBreaker )

Sets Tie Breaker parameter (tie parameter)

Liste de paramètres

tieBreaker

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

Valeurs de retour

SolrDisMaxQuery

Exemples

Exemple #1 SolrDisMaxQuery::setTieBreaker() example

<?php

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

echo 
$dismaxQuery;

?>

L'exemple ci-dessus va afficher :

defType=edismax&tie=0.1

SolrDisMaxQuery
PHP Manual