array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.gettimeallowed.php', 1 => 'SolrQuery::getTimeAllowed', 2 => 'Returns the time in milliseconds allowed for the query to finish', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.gettermsupperbound.php', 1 => 'SolrQuery::getTermsUpperBound', ), 'next' => array ( 0 => 'solrquery.removeexpandfilterquery.php', 1 => 'SolrQuery::removeExpandFilterQuery', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/gettimeallowed.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::getTimeAllowed

(PECL solr >= 0.9.2)

SolrQuery::getTimeAllowedReturns the time in milliseconds allowed for the query to finish

说明

public SolrQuery::getTimeAllowed(): int

Returns the time in milliseconds allowed for the query to finish.

参数

此函数没有参数。

返回值

Returns and integer on success and null if it is not set.