karmi/tire — pull request #334 by romanbsd (2012-05-07 11:06:12+00:00)
Title: Recent ES doesn't like the sort parameter, so it seems.

When the query is provided as hash, the params get concatenated, producing a query like this:

```
curl -X GET "http://localhost:9200/graylog2/message/_search?from=0&page=1&per_page=100&size=100&sort=created_at+desc&pretty=true" -d '{"query":{"query_string":{"query":"*"}},"sort":[{"created_at":"desc"}],"size":100,"from":0}'
```

It produces an error:

Parse Failure [No mapping found for [created_at desc] in order to sort on]

I don't know whether the other parameters should be there, as they're duplicated in the query, but at least they don't make the request invalid.