| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
// $Id$ |
// $Id: search_ranking.install,v 1.1 2008/06/28 03:58:48 blucches Exp $ |
| 4 |
|
|
| 5 |
|
|
| 6 |
function search_ranking_install() { |
function search_ranking_install() { |
| 12 |
} |
} |
| 13 |
|
|
| 14 |
function search_ranking_schema() { |
function search_ranking_schema() { |
| 15 |
|
$schema['search_node_links_totals'] = array( |
| 16 |
$schema['search_node_links'] = array( |
'description' => t('Stores a count of inbound links used to alter the search score rankings.'), |
|
'description' => t('Stores items (like nodes) that link to other nodes, used to improve search scores for nodes that are frequently linked to.'), |
|
| 17 |
'fields' => array( |
'fields' => array( |
| 18 |
'sid' => array( |
'sid' => array( |
| 19 |
'type' => 'int', |
'type' => 'int', |
| 29 |
'default' => '', |
'default' => '', |
| 30 |
'description' => t('The {search_dataset}.type of the searchable item containing the link to the node.'), |
'description' => t('The {search_dataset}.type of the searchable item containing the link to the node.'), |
| 31 |
), |
), |
| 32 |
'nid' => array( |
'count' => array( |
| 33 |
'type' => 'int', |
'type' => 'int', |
| 34 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 35 |
'not null' => TRUE, |
'not null' => TRUE, |
| 36 |
'default' => 0, |
'default' => 0, |
| 37 |
'description' => t('The {node}.nid that this item links to.'), |
'description' => t('The number of links that point to the node, {search_dataset}.sid'), |
|
), |
|
|
'caption' => array( |
|
|
'type' => 'text', |
|
|
'size' => 'big', |
|
|
'not null' => FALSE, |
|
|
'description' => t('The text used to link to the {node}.nid.'), |
|
| 38 |
), |
), |
| 39 |
), |
), |
| 40 |
'primary key' => array('sid', 'type', 'nid'), |
'primary key' => array('sid'), |
| 41 |
'indexes' => array('nid' => array('nid')), |
'indexes' => array('sid' => array('sid'), 'type' => array('type')), |
| 42 |
); |
); |
| 43 |
return $schema; |
return $schema; |
|
|
|
| 44 |
} |
} |