You are here

function apachesolr_og_apachesolr_modify_query in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 contrib/apachesolr_og/apachesolr_og.module \apachesolr_og_apachesolr_modify_query()

Implementation of hook_apachesolr_modify_query().

File

contrib/apachesolr_og/apachesolr_og.module, line 70
Integrates Organic Group info with Apache Solr search application.

Code

function apachesolr_og_apachesolr_modify_query(&$query, &$params, $caller) {

  // Fetch the group ID in results - however, this is currently not used.
  // May be useful for custom theming.
  if ($caller == 'apachesolr_search') {
    $params['fl'] .= ',' . _apachesolr_og_gid_key();
  }
}