function search_touch_node

7.x search.module search_touch_node($nid)
6.x search.module search_touch_node($nid)

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 drupal-6.x/modules/search/search.module
Implementation of hook_comment().
search_index in drupal-6.x/modules/search/search.module
Update the full-text search index for a particular item.
search_nodeapi in drupal-6.x/modules/search/search.module
Implementation of hook_nodeapi().

File

drupal-6.x/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);
}