public function UnsavedIndexConfiguration::query in Search API 8
Creates a query object for this index.
Parameters
array $options: (optional) Associative array of options configuring this query.
Return value
\Drupal\search_api\Query\QueryInterface A query object for searching this index.
Throws
\Drupal\search_api\SearchApiException Thrown if the index is currently disabled or its server doesn't exist.
Overrides IndexInterface::query
See also
\Drupal\search_api\Query\QueryInterface::create()
File
- src/
UnsavedIndexConfiguration.php, line 627
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function query(array $options = []) {
return $this->entity
->query($options);
}