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.

1 call to Search::query_parse_search_expression()
Search::query in lib/Views/search/Plugin/views/argument/Search.php
Add this argument to the query.

File

lib/Views/search/Plugin/views/argument/Search.php, line 31
Definition of Views\search\Plugin\views\argument\Search.

Class

Search
Argument that accepts query keys for search.

Namespace

Views\search\Plugin\views\argument

Code

function query_parse_search_expression($input) {
  if (!isset($this->search_query)) {
    $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();
  }
}