You are here

function apachesolr_set_last_index_position in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr.module \apachesolr_set_last_index_position()
  2. 7 apachesolr.module \apachesolr_set_last_index_position()

Sets last changed and last ID for an environment and entity type.

2 calls to apachesolr_set_last_index_position()
apachesolr_index_entities in ./apachesolr.index.inc
Processes all index queues associated with the passed environment.
DrupalApacheSolrNodeAccess::testIndexing in apachesolr_access/tests/apachesolr_access.test
Tests indexing and check if it adds the correct grants for those specific users

File

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

Code

function apachesolr_set_last_index_position($env_id, $entity_type, $last_changed, $last_entity_id) {
  $stored = apachesolr_environment_variable_get($env_id, 'apachesolr_index_last', array());
  $stored[$entity_type] = array(
    'last_changed' => $last_changed,
    'last_entity_id' => $last_entity_id,
  );
  apachesolr_environment_variable_set($env_id, 'apachesolr_index_last', $stored);
}