for elasticsearch 0.90.0