You are here

function hook_apachesolr_ENTITY_TYPE_exclude in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr.api.php \hook_apachesolr_ENTITY_TYPE_exclude()
  2. 7 apachesolr.api.php \hook_apachesolr_ENTITY_TYPE_exclude()

This is invoked for each entity from the type of ENTITY_TYPE that is being inspected to be added to the index. if any module returns TRUE,  the entity is skipped for indexing.

Parameters

integer $entity_id:

integer $row: A complete set of data from the indexing table.

string $env_id:

Return value

boolean

File

./apachesolr.api.php, line 251
Exposed Hooks in 6.x-3.x:

Code

function hook_apachesolr_ENTITY_TYPE_exclude($entity_id, $row, $env_id) {

  // Never index ENTITY_TYPE to core_1
  if ($env_id == 'core_1') {
    return TRUE;
  }
  return FALSE;
}