You are here

function apachesolr_og_update_5000 in Apache Solr Search 5.2

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

File

contrib/apachesolr_og/apachesolr_og.install, line 33

Code

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