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
 
<SolrDocument::getFieldSolrDocument::getFieldNames>
^SolrDocumentLast updated: Mon, 26 Oct 2026

SolrDocument::getFieldCount

(PECL solr >= 0.9.2)

SolrDocument::getFieldCount — Returns the number of fields in this document

Description

public function SolrDocument::getFieldCount(): int

Returns the number of fields in this document. Multi-value fields are only counted once.

Parameters

This function has no parameters.

Return Values

Returns an integer on success and false on failure.


<SolrDocument::getFieldSolrDocument::getFieldNames>
^SolrDocumentLast updated: Mon, 26 Oct 2026