SolrInputDocument::getFieldCount

(PECL solr >= 0.9.2)

SolrInputDocument::getFieldCountReturns the number of fields in the document

說(shuō)明

public SolrInputDocument::getFieldCount(): int|false

Returns the number of fields in the document.

參數(shù)

此函數(shù)沒(méi)有參數(shù)。

返回值

Returns an integer on success 或者在失敗時(shí)返回 false.