/** * custom SOLR search function. */ function search_SOLR($keyword) { $solr = apachesolr_get_solr(); $query = apachesolr_drupal_query("custom", array('q' => $keyword)); $query->addParam('rows', '1000'); // How many rows of result to display default it is 10. $query->addFilter('bundle', (event OR city OR company)); $query->removeFilter('bundle'); $query->addParam('fq', "bundle:(event OR city OR company)"); $resp = $query->search(); // Only search in title $query->replaceParam('qf', 'label'); $resp_ = $query->search(); }