array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrinputdocument.setfieldboost.php', 1 => 'SolrInputDocument::setFieldBoost', 2 => 'Sets the index-time boost value for a field', ), 'up' => array ( 0 => 'class.solrinputdocument.php', 1 => 'SolrInputDocument', ), 'prev' => array ( 0 => 'solrinputdocument.setboost.php', 1 => 'SolrInputDocument::setBoost', ), 'next' => array ( 0 => 'solrinputdocument.sort.php', 1 => 'SolrInputDocument::sort', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrinputdocument/setfieldboost.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrInputDocument::setFieldBoost

(PECL solr >= 0.9.2)

SolrInputDocument::setFieldBoostSets the index-time boost value for a field

说明

public SolrInputDocument::setFieldBoost(string $fieldName, float $fieldBoostValue): bool

Sets the index-time boost value for a field. This replaces the current boost value for this field.

参数

fieldName

The name of the field.

fieldBoostValue

The index time boost value.

返回值

成功时返回 true, 或者在失败时返回 false