You are here

function apachesolr_add_node_document in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 apachesolr.index.inc \apachesolr_add_node_document()

Add a document to the $documents array based on a node ID.

File

./apachesolr.index.inc, line 11
Functions used when indexing content to Apache Solr.

Code

function apachesolr_add_node_document(&$documents, $nid, $namespace) {
  if ($document = apachesolr_node_to_document($nid, $namespace)) {
    $documents[] = $document;
  }
}