1.20.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

modules/search/search.extender.inc, line 148
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;
}