1.20.x views_handler_filter_search.inc views_handler_filter_search::query_parse_search_expression($input)

Take sure that parseSearchExpression is runned and everything is set up for it.

Parameters

$input: The search phrase which was input by the user.

File

modules/search/views/views_handler_filter_search.inc, line 105
Contains a search filter handler.

Class

views_handler_filter_search
Field handler to provide simple renderer that allows linking to a node.

Code

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('viewsSearchQuery');
    $this->search_query->searchExpression($input, $this->view->base_table);
    $this->search_query->publicParseSearchExpression();
  }
}