diff --git a/modules/comment/comment.module b/modules/comment/comment.module
old mode 100644
new mode 100755
index 2793ea3..f64473a
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -856,6 +856,51 @@ function comment_get_thread($node, $mode, $comments_per_page) {
 
   return $cids;
 }
+/**
+* comment_node_update_index needs to obtain the cids of the comments 
+* without being restricted by node_access so that comments can be
+* indexed.  See http://drupal.org/node/1396534.
+* 
+* This is a copy of comment_get_thread with the addTags removed.
+*/
+function comment_get_thread_NA($node, $mode, $comments_per_page) {
+  $query = db_select('comment', 'c')->extend('PagerDefault');
+  $query->addField('c', 'cid');
+  $query
+    ->condition('c.nid', $node->nid)
+//  ->addTag('node_access')
+//  ->addTag('comment_filter')
+    ->addMetaData('node', $node)
+    ->limit($comments_per_page);
+
+  $count_query = db_select('comment', 'c');
+  $count_query->addExpression('COUNT(*)');
+  $count_query
+    ->condition('c.nid', $node->nid)
+    ->addTag('node_access')
+    ->addTag('comment_filter')
+    ->addMetaData('node', $node);
+
+  if (!user_access('administer comments')) {
+    $query->condition('c.status', COMMENT_PUBLISHED);
+    $count_query->condition('c.status', COMMENT_PUBLISHED);
+  }
+  if ($mode === COMMENT_MODE_FLAT) {
+    $query->orderBy('c.cid', 'ASC');
+  }
+  else {
+    // See comment above. Analysis reveals that this doesn't cost too
+    // much. It scales much much better than having the whole comment
+    // structure.
+    $query->addExpression('SUBSTRING(c.thread, 1, (LENGTH(c.thread) - 1))', 'torder');
+    $query->orderBy('torder', 'ASC');
+  }
+
+  $query->setCountQuery($count_query);
+  $cids = $query->execute()->fetchCol();
+
+  return $cids;
+}
 
 /**
  * Loop over comment thread, noting indentation level.
@@ -1341,7 +1386,7 @@ function comment_node_update_index($node) {
   if ($index_comments) {
     $mode = variable_get('comment_default_mode_' . $node->type, COMMENT_MODE_THREADED);
     $comments_per_page = variable_get('comment_default_per_page_' . $node->type, 50);
-    if ($node->comment && $cids = comment_get_thread($node, $mode, $comments_per_page)) {
+    if ($node->comment && $cids = comment_get_thread_NA($node, $mode, $comments_per_page)) {
       $comments = comment_load_multiple($cids);
       comment_prepare_thread($comments);
       $build = comment_view_multiple($comments, $node);
