Commits

Jason R. Coombs committed 1ddf4c1

Try using count here

Comments (0)

Files changed (1)

 		Returns the total number of documents, DELETED OR UNDELETED, in this
 		reader.
 		"""
-		return self.index.collection.get('')
+		return self.index.collection.count()
 
 	def doc_count(self):
 		"""
 		Returns the total number of UNDELETED documents in this reader.
 		"""
-		return self.index.collection.get('')
+		return self.index.collection.count()
 
 	def doc_field_length(self, docnum, fieldname, default=0):
 		"""