php8.5
Home/ Manual/ solr / solrinputdocument/ SolrInputDocument::merge

SolrInputDocument::merge

PHP function Edit on GitHub ✎

(PECL solr >= 0.9.2)

Merges one input document into another

Description

SolrInputDocument::merge(SolrInputDocument $sourceDoc, bool $overwrite = true): bool

Merges one input document into another.

Parameters

sourceDoc

The source document.

overwrite

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

Return Values

Success In the future, this will be modified to return the number of fields in the new document.

Source: reference/solr/solrinputdocument/merge.xml · from the official PHP manual (php/doc-en)