Fix for breaking change in elasticsearch 1.0. fixes #4.