function apachesolr_get_last_index in Apache Solr Search 5.2
Same name and namespace in other branches
- 6 apachesolr.module \apachesolr_get_last_index()
- 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 264 - 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,
);
}