| 
 | SolrClient::addDocumentAdds a document to the index Description
   public SolrUpdateResponse SolrClient::addDocument
    ( SolrInputDocument  $doc[, bool$allowDups= false
   [, int$commitWithin= 0
  ]] )This method adds a document to the index. Parameters
 
 Return ValuesReturns a SolrUpdateResponse object or throws a SolrClientException on failure. Examples
 Example #1 SolrClient::addDocument example 
<?phpThe above example will output something similar to: 
SolrObject Object
(
    [responseHeader] => SolrObject Object
        (
            [status] => 0
            [QTime] => 1
        )
)
See Also
 
 |