'Index one document.'

@classmethod
def index(cls, document, id_=None, es=None, index=None):

    es = (es or cls.get_es())
    index = (index or cls.get_index())
    es.index(index=index, doc_type=cls.get_mapping_type_name(), body=document, id=id_)
