public function Server::search in Search API 8
Executes a search on this server.
Parameters
\Drupal\search_api\Query\QueryInterface $query: The query to execute.
Throws
\Drupal\search_api\SearchApiException Thrown if an error prevented the search from completing.
Overrides BackendSpecificInterface::search
File
- src/
Entity/ Server.php, line 472
Class
- Server
- Defines the search server configuration entity.
Namespace
Drupal\search_api\EntityCode
public function search(QueryInterface $query) {
$this
->getBackend()
->search($query);
}