public function delete($query)
	{
		$deleteQuery = $this->parseQuery($query);

		if (!empty($deleteQuery))
		{
			try
			{
				$update = $this->connection->createUpdate();
				$update->addDeleteQuery($deleteQuery);
				$update->addCommit();
				$response = $this->connection->update($update);
				return null;
			}
			catch (\Solarium\Exception\HttpException $e)
			{
				$body = json_decode($e->getBody());
				$message = isset($body->error->msg) ? $body->error->msg : $e->getStatusMessage();
				return $message;
			}
		}
		else
		{
			return false;
		}
	}
public function delete($query)
	{
		$deleteQuery = $this->parseQuery($query);

		if (!empty($deleteQuery))
		{
			try
			{
				$update = $this->connection->createUpdate();
				$update->addDeleteQuery($deleteQuery);
				$update->addCommit();
				$response = $this->connection->update($update);
				return null;
			}
			catch (\Solarium\Exception\HttpException $e)
			{
				$body = json_decode($e->getBody());
				$message = isset($body->error->msg) ? $body->error->msg : $e->getStatusMessage();
				return $message;
			}
		}
		else
		{
			return false;
		}
	}
public function delete ( $ query ) { $ deleteQuery = $ this -> parseQuery ( $ query ) ; if ( ! empty ( $ deleteQuery ) ) { try { $ update = $ this -> connection -> createUpdate ( ) ; $ update -> addDeleteQuery ( $ deleteQuery ) ; $ update -> addCommit ( ) ; $ response = $ this -> connection -> update ( $ update ) ; return null ; } catch ( \ Solarium \ Exception \ HttpException $ e ) { $ body = json_decode ( $ e -> getBody ( ) ) ; $ message = isset ( $ body -> error -> msg ) ? $ body -> error -> msg : $ e -> getStatusMessage ( ) ; return $ message ; } } else { return false ; } }
deleteById - Removes a single document from the search index

@param string $id
@access public
@return mixed string if error caught
deleteById - Removes a single document from the search index