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

SolrDocument::__unset

(PECL solr >= 0.9.2)

SolrDocument::__unset — Removes a field from the document

Description

public function SolrDocument::__unset(string $fieldName): bool

Removes a field from the document when the field is access as an object property.

Parameters

fieldName

The name of the field.

Return Values

Returns true on success or false on failure.


<SolrDocument::unserializeSolrDocument::valid>
^SolrDocumentLast updated: Mon, 26 Oct 2026