public function SearchQuery::searchExpression

7.x search.extender.inc public SearchQuery::searchExpression($expression, $module)

Sets up the search query expression.

Parameters

$query: A search query string, which can contain options.

$module: The search module. This maps to {search_index}.type in the database.

Return value

The SearchQuery object.

File

drupal/modules/search/search.extender.inc, line 146
Search query extender and helper functions.

Class

SearchQuery
Do a query on the full-text search index for a word or words.

Code

public function searchExpression($expression, $module) {
  $this->searchExpression = $expression;
  $this->type = $module;

  return $this;
}