| 6 search.module | search_touch_node($nid) |
| 7 search.module | search_touch_node($nid) |
| 8 search.module | search_touch_node($nid) |
Changes a node's changed timestamp to 'now' to force reindexing.
Parameters
$nid: The node ID of the node that needs reindexing.
10 calls to search_touch_node()
File
- modules/
search/ search.module, line 783 - Enables site-wide keyword searching.
Code
function search_touch_node($nid) {
db_update('search_dataset')
->fields(array('reindex' => REQUEST_TIME))
->condition('type', 'node')
->condition('sid', $nid)
->execute();
}
Login or register to post comments