Update to elasticsearch 1.4.0

Related to #64.

(cherry picked from commit 45c7189)