updated for elasticsearch 0.90.0
updated for elasticsearch 0.90.1