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::addFieldSolrInputDocument::__clone>
^SolrInputDocumentLast updated: Mon, 26 Oct 2026

SolrInputDocument::clear

(PECL solr >= 0.9.2)

SolrInputDocument::clear — Resets the input document

Description

public function SolrInputDocument::clear(): bool

Resets the document by dropping all the fields and resets the document boost to zero.

Parameters

This function has no parameters.

Return Values

Returns true on success or false on failure.


<SolrInputDocument::addFieldSolrInputDocument::__clone>
^SolrInputDocumentLast updated: Mon, 26 Oct 2026