SearchQuery::countQuery

public SearchQuery::countQuery() Builds the default count query for SearchQuery. Since SearchQuery always uses GROUP BY, we can default to a subquery. We also add the same conditions as execute() because countQuery() is called first. Overrides SelectExtender::countQuery File core/modules/search/src/SearchQuery.php, line 603 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code public function countQuery() { if (!$this->executedPrepare) { $t

SearchQuery::addScore

public SearchQuery::addScore($score, $arguments = array(), $multiply = FALSE) Adds a custom score expression to the search query. Score expressions are used to order search results. If no calls to addScore() have taken place, a default keyword relevance score will be used. However, if at least one call to addScore() has taken place, the keyword relevance score is not automatically added. Note that you must use this method to add ordering to your searches, and not call orderBy() directly, when u

SearchQuery::$words

Array of positive search words. These words have to match against {search_index}.word. Type: array File core/modules/search/src/SearchQuery.php, line 132 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code protected $words = array();

SearchQuery::$type

The type of search (search type). This maps to the value of the type column in search_index, and is usually equal to the machine-readable name of the plugin or the search page. Type: string File core/modules/search/src/SearchQuery.php, line 92 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code protected $type;

SearchQuery::$status

A bitmap of status conditions, described in getStatus(). Type: int See also SearchQuery::getStatus() File core/modules/search/src/SearchQuery.php, line 158 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code protected $status = 0;

SearchQuery::$simple

Indicates whether the query conditions are simple or complex (LIKE). Type: bool File core/modules/search/src/SearchQuery.php, line 106 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code protected $simple = TRUE;

SearchQuery::$searchExpression

The keywords and advanced search options that are entered by the user. Type: string File core/modules/search/src/SearchQuery.php, line 82 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code protected $searchExpression;

SearchQuery::$scoresArguments

Arguments for the score expressions. Type: array File core/modules/search/src/SearchQuery.php, line 174 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code protected $scoresArguments = array();

SearchQuery::$scores

The word score expressions. Type: array See also SearchQuery::addScore() File core/modules/search/src/SearchQuery.php, line 167 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code protected $scores = array();

SearchQuery::$relevance_count

The number of 'i.relevance' occurrences in score expressions. Type: int File core/modules/search/src/SearchQuery.php, line 181 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code protected $relevance_count = 0;