Elasticsearch 1.0

Here is the PR for issue #45