SolrInputDocument::merge

(PECL solr >= 0.9.2)

SolrInputDocument::mergeMerges one input document into another

说锟斤拷

public SolrInputDocument::merge ( SolrInputDocument $sourceDoc [, bool $overwrite = TRUE ] ) : bool

Merges one input document into another.

锟斤拷锟斤拷

sourceDoc

The source document.

overwrite

If this is TRUE it will replace matching fields in the destination document.

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷 In the future, this will be modified to return the number of fields in the new document.