def __init__(self,host,index,map_name,mapping=None,id_key=None):
        self.es = pyes.ES(host)
        self.index = index
        self.map_name = map_name
        self.mapping = mapping
        self.id_key = id_key