SolrInputDocument::clear

(PECL solr >= 0.9.2)

SolrInputDocument::clearResets the input document

說(shuō)明

public SolrInputDocument::clear(): bool

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

參數(shù)

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

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false