// Return matching snippet and number of added words.
returnarray($num_new_scores,$num_valid_words);
}
/**
* Executes the first pass query.
*
* This can either be done explicitly, so that additional scores and
* conditions can be applied to the second pass query, or implicitly by
* addScore() or execute().
*
* @return
* TRUE if search items exist, FALSE if not.
*/
publicfunctionexecuteFirstPass(){
$this->parseSearchExpression();
if(count($this->words)==0){
form_set_error('keys',format_plural(variable_get('minimum_word_size',3),'You must include at least one positive keyword with 1 character or more.','You must include at least one positive keyword with @count characters or more.'));
returnFALSE;
}
if($this->expressionsIgnored){
drupal_set_message(t('Your search used too many AND/OR expressions. Only the first @count terms were included in this search.',array('@count'=>variable_get('search_and_or_limit',7))),'warning');