Tests pass on 1.0

I was going to add tests for #4, but found out that tests are broken for elasticsearch 1.0.

http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/breaking-changes.html