You are here

function hook_apachesolr_ENTITY_TYPE_exclude in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 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

string $entity_id:

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

string $env_id: The machine name of the environment.

Return value

boolean

File

./apachesolr.api.php, line 261
Exposed Hooks in 7.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;
}