You are here

function facetapi_luceneapi_schema in Facet API 6

Implementation of hook_schema().

File

contrib/facetapi_luceneapi/facetapi_luceneapi.install, line 33
Installation functions for the Search Lucene API Facet Adapter module.

Code

function facetapi_luceneapi_schema() {
  $schema = array();
  $schema['luceneapi_node_termfreqs'] = array(
    'description' => 'Cached Search Lucene API term frequencies.',
    'fields' => array(
      'term' => array(
        'description' => 'A string containing the term being searched.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'field' => array(
        'description' => 'A string containing the name of the Lucene field.',
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'default' => '',
      ),
      'termfreqs' => array(
        'description' => 'An array of document IDs the term is found in.',
        'type' => 'blob',
        'not null' => FALSE,
        'size' => 'big',
      ),
    ),
    'indexes' => array(
      'term' => array(
        'term',
      ),
      'field' => array(
        'field',
      ),
    ),
    'primary key' => array(
      'term',
      'field',
    ),
  );
  return $schema;
}