karmi/tire — pull request #289 by plentz (2012-03-25 02:18:24+00:00)
Title: fuzzy query dsl support

For newcomers(like me - but not [just](http://stackoverflow.com/questions/9018291/rewrite-sql-query-with-tire) me), It's pretty hard to find out how to add support to [fuzzy](http://www.elasticsearch.org/guide/reference/query-dsl/fuzzy-query.html) searchs. It would be nicer to have some api to easier archive querys with fuzzy(and maybe [flt](http://www.elasticsearch.org/guide/reference/query-dsl/flt-query.html)).

disclaimer: I know that ```Tire.search 'customers', :query => { :fuzzy => { :name => 'John' } }``` work, but it's pretty hard to include things like pagination, etc.

this is an initial implementation and could be improved. I also added a little improvement to the ```term``` api, which allow a option's hash parameter to be passed.