array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'solrdocument.clear.php', 1 => 'SolrDocument::clear', 2 => 'Drops all the fields in the document', ), 'up' => array ( 0 => 'class.solrdocument.php', 1 => 'SolrDocument', ), 'prev' => array ( 0 => 'solrdocument.addfield.php', 1 => 'SolrDocument::addField', ), 'next' => array ( 0 => 'solrdocument.clone.php', 1 => 'SolrDocument::__clone', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrdocument/clear.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrDocument::clear

(PECL solr >= 0.9.2)

SolrDocument::clearDrops all the fields in the document

Descrizione

public SolrDocument::clear(): bool

Resets the current object. Discards all the fields and resets the document boost to zero.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.