array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrresponse.success.php', 1 => 'SolrResponse::success', 2 => 'Was the request a success', ), 'up' => array ( 0 => 'class.solrresponse.php', 1 => 'SolrResponse', ), 'prev' => array ( 0 => 'solrresponse.setparsemode.php', 1 => 'SolrResponse::setParseMode', ), 'next' => array ( 0 => 'class.solrqueryresponse.php', 1 => 'SolrQueryResponse', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrresponse/success.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrResponse::success

(PECL solr >= 0.9.2)

SolrResponse::successWas the request a success

说明

public SolrResponse::success(): bool

Used to check if the request to the server was successful.

参数

此函数没有参数。

返回值

Returns true if it was successful and false if it was not.