You are here

public function SearchApiSolrConnectionInterface::deleteByQuery in Search API Solr 7

Sends a delete request for all documents that match the given Solr query.

Parameters

string $rawQuery: The query whose results 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::deleteByQuery()
SearchApiSolrConnection::deleteByQuery in includes/solr_connection.inc
Sends a delete request for all documents that match the given Solr query.

File

includes/solr_connection.interface.inc, line 259

Class

SearchApiSolrConnectionInterface
The interface for a Solr connection class.

Code

public function deleteByQuery($rawQuery, $timeout = 3600);