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::offsetExistsSolrDocument::offsetSet>
^SolrDocumentLast updated: Mon, 26 Oct 2026

SolrDocument::offsetGet

(PECL solr >= 0.9.2)

SolrDocument::offsetGet — Retrieves a field

Description

public function SolrDocument::offsetGet(string $fieldName): SolrDocumentField

This is used to retrieve the field when the object is treated as an array.

Parameters

fieldName

The name of the field.

Return Values

Returns a SolrDocumentField object.


<SolrDocument::offsetExistsSolrDocument::offsetSet>
^SolrDocumentLast updated: Mon, 26 Oct 2026