public function QueryInterface::execute in Search API 8
Executes this search query.
The results of the search will be cached on the query, so subsequent calls of this method will always return the same result set (even if conditions were changed in between). If you want to re-execute a query, use getOriginalQuery().
Return value
\Drupal\search_api\Query\ResultSetInterface The results of the search.
Throws
\Drupal\search_api\SearchApiException Thrown if an error occurred during the search.
1 method overrides QueryInterface::execute()
- Query::execute in src/
Query/ Query.php - Executes this search query.
File
- src/
Query/ QueryInterface.php, line 302
Class
- QueryInterface
- Represents a search query on a Search API index.
Namespace
Drupal\search_api\QueryCode
public function execute();