#NEWLINE# def get( self , index , doctype , docid , fields = None ) : #NEWLINE# #INDENT# "Get document from the index.\n\n        You need to supply an index, doctype and id. Optionally, you can\n        list the fields that you want to retrieve, e.g.:\n        fields=['name','address']\n\n        " #NEWLINE# args = dict ( ) #NEWLINE# if self : #NEWLINE# #INDENT# fields = ',' . join ( fields ) #NEWLINE# args [ 'fields' ] = fields #NEWLINE# #UNINDENT# path = self . _make_path ( [ index , doctype , str ( docid ) ] ) #NEWLINE# self . send_request ( 'GET' , path , query_string_args = args ) #NEWLINE# return self . _parse_json_response ( self . last_response . text )