function Search::query_parse_search_expression

Same name in this branch
  1. 8.x drupal/core/modules/search/lib/Drupal/search/Plugin/views/argument/Search.php \Drupal\search\Plugin\views\argument\Search::query_parse_search_expression()
  2. 8.x drupal/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php \Drupal\search\Plugin\views\filter\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 drupal/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php
Add this filter to the query.
Search::validateExposed in drupal/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php
Validate the options form.

File

drupal/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php, line 99
Definition of Drupal\search\Plugin\views\filter\Search.

Class

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

Namespace

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