array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.getmltcount.php', 1 => 'SolrQuery::getMltCount', 2 => 'Returns the number of similar documents to return for each result', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.getmltboost.php', 1 => 'SolrQuery::getMltBoost', ), 'next' => array ( 0 => 'solrquery.getmltfields.php', 1 => 'SolrQuery::getMltFields', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/getmltcount.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::getMltCount

(PECL solr >= 0.9.2)

SolrQuery::getMltCountReturns the number of similar documents to return for each result

说明

public SolrQuery::getMltCount(): int

Returns the number of similar documents to return for each result

参数

此函数没有参数。

返回值

Returns an integer on success and null if not set.