SolrDocument::clear

(PECL solr >= 0.9.2)

SolrDocument::clearDrops all the fields in the document

說明

public SolrDocument::clear(): bool

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

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

成功時返回 true, 或者在失敗時返回 false。