You are here

function Search::query_parse_search_expression in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/search/Plugin/views/filter/Search.php \Views\search\Plugin\views\filter\Search::query_parse_search_expression()
  2. 8.3 lib/Views/search/Plugin/views/argument/Search.php \Views\search\Plugin\views\argument\Search::query_parse_search_expression()

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

Parameters

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

2 calls to Search::query_parse_search_expression()
Search::query in lib/Views/search/Plugin/views/filter/Search.php
Add this filter to the query.
Search::validateExposed in lib/Views/search/Plugin/views/filter/Search.php
Validate the options form.

File

lib/Views/search/Plugin/views/filter/Search.php, line 102
Definition of Views\search\Plugin\views\filter\Search.

Class

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

Namespace

Views\search\Plugin\views\filter

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