You are here

function apachesolr_multisitesearch_apachesolr_modify_query in Apache Solr Multisite Search 6

Same name and namespace in other branches
  1. 6.2 apachesolr_multisitesearch.module \apachesolr_multisitesearch_apachesolr_modify_query()

Implementation of hook_apachesolr_modify_query().

File

./apachesolr_multisitesearch.module, line 218
Provides a multi-site search implementation for use with the Apache Solr module

Code

function apachesolr_multisitesearch_apachesolr_modify_query(&$query, &$params, $caller) {
  if (empty($query->multisite)) {

    // Limit single site searchs via the site hash.
    $query
      ->add_filter('hash', apachesolr_site_hash());
  }
}