#NEWLINE# @ classmethod #NEWLINE# def index( cls , document , id = None , refresh = False , index = None ) : #NEWLINE# #INDENT# 'Wrapper around Elasticsearch.index.' #NEWLINE# search . get_es ( ) . index ( body = id , index = ( index or cls . _get_index ( ) ) , doc_type = cls . get_mapping_type ( ) , id = id , refresh = refresh )