略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SolrDisMaxQuery::setTieBreaker

2024-11-15

SolrDisMaxQuery::setTieBreaker

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

SolrDisMaxQuery::setTieBreakerSets Tie Breaker parameter (tie parameter)

说明

public SolrDisMaxQuery::setTieBreaker(string $tieBreaker): SolrDisMaxQuery

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
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/solrdismaxquery.settiebreaker.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3