You are here

function apachesolr_og_reindex in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 contrib/apachesolr_og/apachesolr_og.module \apachesolr_og_reindex()

Submit function to make group nodes as needing re-indexing.

File

contrib/apachesolr_og/apachesolr_og.module, line 46
Integrates Organic Group info with Apache Solr search application.

Code

function apachesolr_og_reindex() {
  $result = db_query("SELECT nid FROM {og}");
  while ($og = db_fetch_array($result)) {
    apachesolr_mark_node($og['nid']);
  }
  drupal_set_message(t('All group nodes marked for re-indexing'));
}