Update to elasticsearch 1.4.0

Related to #32.

(cherry picked from commit 432be3c)
(cherry picked from commit fa102e6)