Jared Whiklo
10 years ago
2 changed files with 21 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||||||
|
name = Islandora Apache Solr Integration |
||||||
|
description = A module which allows the Solr indexing and searching of Islandora resources. |
||||||
|
core = 7.x |
||||||
|
package = Islandora |
||||||
|
dependencies[] = apachesolr |
||||||
|
dependencies[] = uuid |
@ -0,0 +1,15 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* @file |
||||||
|
* Islandora Apache Solr integration. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Implements hook_apachesolr_index_documents_alter(). |
||||||
|
*/ |
||||||
|
function islandora_apachesolr_apachesolr_index_documents_alter(array &$documents, $entity, $entity_type, $env_id) { |
||||||
|
if ($entity_type == 'node' && count($documents) > 0 && isset($entity->uuid)) { |
||||||
|
$documents[0]->ss_uuid = $entity->uuid; |
||||||
|
} |
||||||
|
} |
||||||
|
|
Loading…
Reference in new issue