Update to elasticsearch 1.4

Related to #77

(cherry picked from commit ad1742a)