Commit 7e972b3e authored by dawehner's avatar dawehner Committed by tim.plunkett

Issue #1760748 by dawehner, aspilicious: Fixed Move ViewsSearchQuery.

parent 956af788
......@@ -30,7 +30,7 @@ class Search extends ArgumentPluginBase {
*/
function query_parse_search_expression($input) {
if (!isset($this->search_query)) {
$this->search_query = db_select('search_index', 'i', array('target' => 'slave'))->extend('Drupal\views\Search\ViewsSearchQuery');
$this->search_query = db_select('search_index', 'i', array('target' => 'slave'))->extend('Views\search\ViewsSearchQuery');
$this->search_query->searchExpression($input, $this->view->base_table);
$this->search_query->publicParseSearchExpression();
}
......
......@@ -31,7 +31,7 @@ class Search extends FilterPluginBase {
* This value extends the query extender to be able to provide methods
* which returns the protected values.
*
* @var Drupal\views\Search\ViewsSearchQuery
* @var Views\search\ViewsSearchQuery
*/
var $search_query = NULL;
......@@ -102,7 +102,7 @@ public function validateExposed(&$form, &$form_state) {
function query_parse_search_expression($input) {
if (!isset($this->search_query)) {
$this->parsed = TRUE;
$this->search_query = db_select('search_index', 'i', array('target' => 'slave'))->extend('Drupal\views\Search\ViewsSearchQuery');
$this->search_query = db_select('search_index', 'i', array('target' => 'slave'))->extend('Views\search\ViewsSearchQuery');
$this->search_query->searchExpression($input, $this->view->base_table);
$this->search_query->publicParseSearchExpression();
}
......
......@@ -2,10 +2,10 @@
/**
* @file
* Definition of Drupal\views\Search\ViewsSearchQuery.
* Definition of Views\search\ViewsSearchQuery.
*/
namespace Drupal\search;
namespace Views\search;
/**
* Extends the core SearchQuery to be able to gets it's protected values.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment