You are here

public function SearchApiSolrConnectionInterface::deleteById in Search API Solr 7

Sends a delete request based on a document ID.

Parameters

string $id: The ID of the document which should be deleted. Expected to be UTF-8 encoded.

int|false $timeout: Seconds to wait until timing out with an exception. Defaults to an hour.

Return value

object A response object.

Throws

SearchApiException If an error occurs during the service call.

1 method overrides SearchApiSolrConnectionInterface::deleteById()
SearchApiSolrConnection::deleteById in includes/solr_connection.inc
Sends a delete request based on a document ID.

File

includes/solr_connection.interface.inc, line 226

Class

SearchApiSolrConnectionInterface
The interface for a Solr connection class.

Code

public function deleteById($id, $timeout = 3600);