You are here

function apachesolr_og_update_6000 in Apache Solr Search 6

Re-index so as to use new missing field query.

File

contrib/apachesolr_og/apachesolr_og.install, line 38
Install and related hooks for the apachesolr_date module.

Code

function apachesolr_og_update_6000() {
  $ret = array();
  apachesolr_clear_last_index();
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Called function apachesolr_clear_last_index(). All content will be re-indexed',
  );
  $facet_missing = variable_get('apachesolr_facet_missing', array());
  $facet_missing['apachesolr_og'][_apachesolr_og_gid_key()] = 1;
  variable_set('apachesolr_facet_missing', $facet_missing);
  return $ret;
}