You are here

function apachesolr_get_last_index in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 apachesolr.module \apachesolr_get_last_index()
  2. 6.2 apachesolr.module \apachesolr_get_last_index()

Returns last changed and last nid for an indexing namespace.

2 calls to apachesolr_get_last_index()
apachesolr_index_nodes in ./apachesolr.module
Function to handle the indexing of nodes.
_apachesolr_exclude_types in ./apachesolr.module

File

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

Code

function apachesolr_get_last_index($namespace) {
  $stored = variable_get('apachesolr_index_last', array());
  return isset($stored[$namespace]) ? $stored[$namespace] : array(
    'last_change' => 0,
    'last_nid' => 0,
  );
}