You are here

public function views_handler_filter_search::query_parse_search_expression in Views (for Drupal 7) 7.3

Make sure that parseSearchExpression is run and everything is set up.

Parameters

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

2 calls to views_handler_filter_search::query_parse_search_expression()
views_handler_filter_search::exposed_validate in modules/search/views_handler_filter_search.inc
Validate the options form.
views_handler_filter_search::query in modules/search/views_handler_filter_search.inc
Add this filter to the query.

File

modules/search/views_handler_filter_search.inc, line 110
Definition of views_handler_filter_search.

Class

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

Code

public 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();
  }
}