#NEWLINE# def increment_total_docs( self ) : #NEWLINE# #INDENT# '\n        Increments the total number of documents the index is aware of.\n\n        This is important for scoring reasons & is typically called as part\n        of the indexing process.\n        ' #NEWLINE# current_stats = self . read_stats ( ) #NEWLINE# current_stats . setdefault ( 'total_docs' , 0 ) #NEWLINE# current_stats [ 'total_docs' ] += 1 #NEWLINE# self . write_stats ( self )