You are here

function apachesolr_og_reindex in Apache Solr Organic Groups Integration 6.2

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

1 string reference to 'apachesolr_og_reindex'
apachesolr_og_admin in ./apachesolr_og.module
Build a settings form.

File

./apachesolr_og.module, line 43
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'));
}