You are here

function apachesolr_update_6003 in Apache Solr Search 6

Same name and namespace in other branches
  1. 6.2 apachesolr.install \apachesolr_update_6003()

Re-index nodes in books.

File

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

Code

function apachesolr_update_6003() {
  $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;
}