steveklabnik/sunlight-congress — pull request #14 by rjsamson (2013-04-12 02:31:32+00:00)
Title: Add bill query for managing bill searches, including pages

This pull request does 3 things:

1) Fixes requires that were inadvertently moved around in a previous commit
2) Adds the remaining result fields to bill.rb and adds a by_bill_id method
3) Creates BillQuery which allows full text searching of bills, high level filtering by fields, and includes support for pagination. An example of BillQuery usage:

```ruby
bills = Sunlight::Congress::BillQuery.search("health care")
#=> # 3230
bills.results # results in an array of Bill objects
#=> [# [# 2
```

Thoughts?