add elasticsearch support.