Update to elasticsearch 1.4.0

Related to #14.

(cherry picked from commit 964de0d)