You are here

function apachesolr_facetapi_searcher_info in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.module \apachesolr_facetapi_searcher_info()
  2. 6.3 apachesolr.module \apachesolr_facetapi_searcher_info()

Implements hook_facetapi_searcher_info().

File

./apachesolr.module, line 258
Integration with the Apache Solr search application.

Code

function apachesolr_facetapi_searcher_info() {
  $info = array();

  // TODO: is it needed to return all of them here?
  foreach (apachesolr_load_all_environments() as $id => $environment) {
    $info['apachesolr@' . $id] = array(
      'label' => t('Apache Solr environment: @environment', array(
        '@environment' => $environment['name'],
      )),
      'adapter' => 'apachesolr',
      'instance' => $id,
      'path' => '',
      'supports facet mincount' => TRUE,
      'supports facet missing' => TRUE,
      'include default facets' => FALSE,
    );
  }
  return $info;
}