public function SearchApiMultiViewsQuery::init in Search API Multi-Index Searches 7
Create the basic query object and fill with default values.
Overrides SearchApiViewsQuery::init
File
- views/
query.inc, line 18
Class
- SearchApiMultiViewsQuery
- Views query class using a Search API index as the data source.
Code
public function init($base_table, $base_field, $options) {
try {
parent::init($base_table, $base_field, $options);
$this->query = search_api_multi_query(array(
'parse mode' => $this->options['parse_mode'],
));
} catch (Exception $e) {
$this->errors[] = $e
->getMessage();
}
}