You are here

function apachesolr_facetapi_query_types in Apache Solr Search 6.3

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

Implements hook_facetapi_query_types().

File

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

Code

function apachesolr_facetapi_query_types() {
  $path = drupal_get_path('module', 'apachesolr') . '/plugins/facetapi';
  return array(
    'apachesolr_term' => array(
      'handler' => array(
        'class' => 'ApacheSolrFacetapiTerm',
        'parent' => 'query_type',
        'file' => 'query_type_term.inc',
        'path' => $path,
        'adapter' => 'apachesolr',
      ),
    ),
    'apachesolr_date' => array(
      'handler' => array(
        'class' => 'ApacheSolrFacetapiDate',
        'parent' => 'date',
        'file' => 'query_type_date.inc',
        'path' => $path,
        'adapter' => 'apachesolr',
      ),
    ),
    'apachesolr_numeric_range' => array(
      'handler' => array(
        'class' => 'ApacheSolrFacetapiNumericRange',
        'parent' => 'range',
        'file' => 'query_type_numeric_range.inc',
        'path' => $path,
        'adapter' => 'apachesolr',
      ),
    ),
    'apachesolr_geo' => array(
      'handler' => array(
        'class' => 'ApacheSolrFacetapiGeo',
        'parent' => 'date',
        'file' => 'query_type_geo.inc',
        'path' => $path,
        'adapter' => 'apachesolr',
      ),
    ),
  );
}