apachesolr_document_id
- 5
apachesolr_document_id($id, $type = 'node')
- 6
apachesolr_document_id($id, $entity = 'node')
Generate a unique ID for an entity being indexed.
Parameters
$id
An id number (or string) unique to this site, such as a node ID.
$entity
A string like 'node', 'file', 'user', or some other Drupal object type.
Return value
A string combining the parameters with the site hash.
Code
contributions/apachesolr/apachesolr.module, line 143
<?php
function apachesolr_document_id($id, $entity = 'node') {
return apachesolr_site_hash() . "/$entity/" . $id;
}
?>