search_touch_node
Definition
search_touch_node($nid)
modules/search/search.module, line 622
Description
Change a node's changed timestamp to 'now' to force reindexing.
Parameters
$nid The nid of the node that needs reindexing.
Code
<?php
function search_touch_node($nid) {
db_query("UPDATE {search_dataset} SET reindex = %d WHERE sid = %d AND type = 'node'", time(), $nid);
}
?> 