add elasticsearch support