support elasticsearch > 0.20.2