You are here

function apachesolr_get_nodes_to_index in Apache Solr Search 8

Same name and namespace in other branches
  1. 5.2 apachesolr.module \apachesolr_get_nodes_to_index()
  2. 6.3 apachesolr.module \apachesolr_get_nodes_to_index()
  3. 6 apachesolr.module \apachesolr_get_nodes_to_index()
  4. 6.2 apachesolr.module \apachesolr_get_nodes_to_index()
  5. 7 apachesolr.module \apachesolr_get_nodes_to_index()

Function to retrieve all the nodes to index. Deprecated but kept for backwards compatibility

Parameters

String $namespace:

type $limit:

File

./apachesolr.module, line 2381
Integration with the Apache Solr search application.

Code

function apachesolr_get_nodes_to_index($namespace, $limit) {
  $env_id = apachesolr_default_environment();

  // Hardcode node as an entity type
  module_load_include('inc', 'apachesolr', 'apachesolr.index');
  apachesolr_index_get_entities_to_index($env_id, 'node', $limit);
}