code: def get_document(self, document_id):
          
          key = 'doc.%s.%s' % (self.name, decode(document_id))
          return decode_dict(self.db.hgetall(key))
docs: :param document_id: Document unique identifier.
          :returns: a dictionary containing the document content and
                    any associated metadata.