#NEWLINE# def make_document_name( self , doc_id ) : #NEWLINE# #INDENT# '\n        Given a ``doc_id``, this constructs a path where the document should\n        be stored.\n\n        It uses a similar hashing mechanism as ``make_segment_name``, using\n        the hash fragment to control the directory structure instead of the\n        filename.\n\n        Returns the full filepath to the document.\n        ' #NEWLINE# return os . path . join ( self . docs_path , self . hash_name ( doc_id ) , '{0}.json' . format ( doc_id ) )