You are here

public function Apache_Solr_Service::add in Apache Solr Search 5

Raw Add Method. Takes a raw post body and sends it to the update service. Post body should be a complete and well formed "add" xml document.

Parameters

string $rawPost:

Return value

Apache_Solr_Response

Throws

Exception If an error occurs during the service call

2 calls to Apache_Solr_Service::add()
Apache_Solr_Service::addDocument in SolrPhpClient/Apache/Solr/Service.php
Add a Solr Document to the index
Apache_Solr_Service::addDocuments in SolrPhpClient/Apache/Solr/Service.php
Add an array of Solr Documents to the index all at once

File

SolrPhpClient/Apache/Solr/Service.php, line 644

Class

Apache_Solr_Service
Starting point for the Solr API. Represents a Solr server resource and has methods for pinging, adding, deleting, committing, optimizing and searching.

Code

public function add($rawPost) {
  return $this
    ->_sendRawPost($this->_updateUrl, $rawPost);
}