karmi/tire — pull request #242 by redbeard (2012-02-14 03:29:47+00:00)
Title: Support for ElasticSearch's 'explain' => true in query and '_explanation' field in the resulting items

This commit includes unit tests, an integration test and an implementation for turning on the explanation field with the scoring breakdown.

This is useful when developing user-interfaces for building and exploring search queries.

Usage:

```ruby
s = Tire.search('explanation-test') do
query { string 'content:Fox' }
explain true
end
```

Which enables the '_explanation' attribute on each result item, accessible so:

```ruby
s.results.first._explanation
```