karmi/tire — pull request #124 by rubish (2011-10-12 03:01:45+00:00)
Title: add support for analyze api

Adds support for [analyze api](http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html). Very helpful when debugging why search is not working as expected, what terms a particular analyzer will generate or what terms ES is generating for the field.

Usage:

```ruby
index.analyze("karmi/tire")
index.analyze("karmi/tire", :analyzer => 'whitespace')
index.analyze("karmi/tire", :field => 'title')
```