You are here

function apachesolr_nodeapi in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 5.2 apachesolr.module \apachesolr_nodeapi()
  2. 5 apachesolr.module \apachesolr_nodeapi()
  3. 6 apachesolr.module \apachesolr_nodeapi()
  4. 6.2 apachesolr.module \apachesolr_nodeapi()

Implements hook_nodeapi().

File

./apachesolr.module, line 1962
Integration with the Apache Solr search application.

Code

function apachesolr_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  switch ($op) {
    case 'delete':
      apachesolr_entity_delete($node, 'node');
      break;
    case 'insert':
    case 'update':

      // Insert or update are the same
      apachesolr_entity_update($node, 'node');
      break;
  }
}