Revision: 20912
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 1, 2009 05:22 by ReeceMarsland
Initial Code
/**
* Implementation of hook_nodeapi()
* For adding additional data to search index
*
*/
function sitehelper_nodeapi(&$node, $op, $teaser, $page) {
switch ($op) {
//Update search index with keyword fields contents
case 'update':
if($node->type == 'product') {
//Add field data to be indexed.
search_index($node->nid,'node', $node->field_search_keywords[0]['value']);
}
break;
}
}
Initial URL
Initial Description
force fields to be added to the search index on update
Initial Title
Drupal force search index on update
Initial Tags
search, drupal
Initial Language
PHP