function search_touch_node in Drupal 6
Same name and namespace in other branches
- 7 modules/search/search.module \search_touch_node()
Change a node's changed timestamp to 'now' to force reindexing.
Parameters
$nid: The nid of the node that needs reindexing.
3 calls to search_touch_node()
- search_comment in modules/
search/ search.module - Implementation of hook_comment().
- search_index in modules/
search/ search.module - Update the full-text search index for a particular item.
- search_nodeapi in modules/
search/ search.module - Implementation of hook_nodeapi().
File
- modules/
search/ search.module, line 623 - Enables site-wide keyword searching.
Code
function search_touch_node($nid) {
db_query("UPDATE {search_dataset} SET reindex = %d WHERE sid = %d AND type = 'node'", time(), $nid);
}