function apachesolr_og_reindex in Apache Solr Search 6
Same name and namespace in other branches
- 5.2 contrib/apachesolr_og/apachesolr_og.module \apachesolr_og_reindex()
Submit function to make group nodes as needing re-indexing.
1 string reference to 'apachesolr_og_reindex'
- apachesolr_og_admin in contrib/
apachesolr_og/ apachesolr_og.module - Build a settings form.
File
- contrib/
apachesolr_og/ 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'));
}