Update to elasticsearch 1.4.0

Related to #32.

(cherry picked from commit 432be3c)