karmi/tire — pull request #423 by leehambley (2012-08-04 10:01:20+00:00)
Title: Support complex hash options for the `term` query:

Example Query:

``` ruby
Tire.search(@@index_name) do
query do
boolean do
should do
term :level, { value: "high", boost: 3}
end
end
end
end
```

More information about this can be found in https://github.com/karmi/tire/issues/422 where there is more example code.

The resulting JSON output of the above is:

``` json
{
"query": {
"bool": {
"should": [{
"term": {
"level": {
"value": "high",
"boost": 3
}
}
}]
}
}
}
```

This does not break any other behaviour.