Same name and namespace in other branches
- 7.x 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.
1 call to search_touch_node()
- search_index in modules/
search/ search.module - Update the full-text search index for a particular item.
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);
}