You are here

function apachesolr_add_node_document in Apache Solr Search 5.2

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