foreach ($words as $word) { $or->
condition("
$search_index.word",
$word);
} $search_condition->
condition($or);
$this->query->
addWhere($this->options
['group'
],
$search_condition);
// Add the GROUP BY and HAVING expressions to the query.
$this->query->
addGroupBy("
$search_index.sid"
);
$matches =
$this->searchQuery->
matches();
$placeholder =
$this->
placeholder();
$this->query->
addHavingExpression($this->options
['group'
], "COUNT(*) >=
$placeholder",
[$placeholder =>
$matches]);
} // Set to NULL to prevent PDO exception when views object is cached.
$this->searchQuery = NULL;
}}