function apachesolr_facetapi_searcher_info in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 apachesolr.module \apachesolr_facetapi_searcher_info()
- 7 apachesolr.module \apachesolr_facetapi_searcher_info()
Implements hook_facetapi_searcher_info().
File
- ./
apachesolr.module, line 268 - 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;
}