public function QueryHelperInterface::createQuery in Search API 8
Creates a new search query object.
Parameters
\Drupal\search_api\IndexInterface $index: The index on which to search.
array $options: (optional) The options to set for the query. See \Drupal\search_api\Query\QueryInterface::setOption() for a list of options that are recognized by default.
Return value
\Drupal\search_api\Query\QueryInterface A search query object to use.
1 method overrides QueryHelperInterface::createQuery()
- QueryHelper::createQuery in src/
Utility/ QueryHelper.php - Creates a new search query object.
File
- src/
Utility/ QueryHelperInterface.php, line 26
Class
- QueryHelperInterface
- Provides an interface for query helper services.
Namespace
Drupal\search_api\UtilityCode
public function createQuery(IndexInterface $index, array $options = []);