diff --git a/apachesolr.index.inc b/apachesolr.index.inc
index 804be0c..cfdbb1a 100644
--- a/apachesolr.index.inc
+++ b/apachesolr.index.inc
@@ -87,8 +87,15 @@ function apachesolr_index_entity_to_documents($item, $env_id) {
   global $user;
   drupal_save_session(FALSE);
   $saved_user = $user;
-  $user = drupal_anonymous_user();
-
+  // Should indexing take place using anon ( default )
+  // or as another user
+  $uid = variable_get('apachesolr_index_user', 0);
+  if($uid == 0) {
+    $user = drupal_anonymous_user();
+  }
+  else {
+    $user = user_load($uid);
+  }
   // Pull out all of our pertinent data.
   $entity_type = $item->entity_type;
 
