Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<SolrInputDocument::getFieldBoostSolrInputDocument::getFieldNames>
^SolrInputDocumentLast updated: Mon, 26 Oct 2026

SolrInputDocument::getFieldCount

(PECL solr >= 0.9.2)

SolrInputDocument::getFieldCount — Returns the number of fields in the document

Description

public function SolrInputDocument::getFieldCount(): int|false

Returns the number of fields in the document.

Parameters

This function has no parameters.

Return Values

Returns an integer on success or false on failure.


<SolrInputDocument::getFieldBoostSolrInputDocument::getFieldNames>
^SolrInputDocumentLast updated: Mon, 26 Oct 2026