function search_touch_node
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.
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(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!search!search.module/function/search_touch_node/7.x