You are here

function apachesolr_update_5003 in Apache Solr Search 5.2

Re-index nodes in books.

File

./apachesolr.install, line 239
Install and related hooks for apachesolr_search.

Code

function apachesolr_update_5003() {
  $ret = array();
  if (module_exists('book')) {
    $time = (int) time();
    $ret[] = update_sql("UPDATE {apachesolr_search_node} SET changed = {$time} WHERE nid IN (SELECT nid from {book})");
  }
  return $ret;
}