public function Apache_Solr_Service::delete in Apache Solr Search 5
Raw Delete Method. Takes a raw post body and sends it to the update service. Body should be a complete and well formed "delete" xml document
Parameters
string $rawPost Expected to be utf-8 encoded xml document:
Return value
Throws
Exception If an error occurs during the service call
2 calls to Apache_Solr_Service::delete()
- Apache_Solr_Service::deleteById in SolrPhpClient/
Apache/ Solr/ Service.php - Create a delete document based on document ID
- Apache_Solr_Service::deleteByQuery in SolrPhpClient/
Apache/ Solr/ Service.php - Create a delete document based on a query and submit it
File
- SolrPhpClient/
Apache/ Solr/ Service.php, line 771
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 delete($rawPost) {
return $this
->_sendRawPost($this->_updateUrl, $rawPost);
}