#NEWLINE# @ needs_instance #NEWLINE# def do_index( self ) : #NEWLINE# #INDENT# body = self . serialize ( ) #NEWLINE# es_client . index ( index = self . index , doc_type = self . doc_type , id = self . instance . id , body = self )