{"issue":{"created_at":"2011-10-26T13:56:10Z","state":"open","updated_at":"2011-11-25T22:12:30Z","user":{"gravatar_id":"920993ef8f677cc1be50fde5ce8cb4bb","id":2173,"url":"https://api.github.com/users/langalex","login":"langalex","avatar_url":"https://secure.gravatar.com/avatar/920993ef8f677cc1be50fde5ce8cb4bb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":7,"body":"This patch adds a parameter `store_options` to `search`, which takes a hash. Here's an example:\r\n\r\n    Post.search do\r\n      store_options :activerecord_scope => Post.published\r\n    end\r\n\r\nWhere `published` is a (named) scope on `Post`.This will result in only published posts being returned from the search.\r\n\r\nI'm not sure if the API is ideal and if I put everything in its right place. Let me know if I should move things around.\r\n\r\nAfter implementing the whole thing I realized it would be nice to be able to just say `Post.published.search` but haven't investigated it that's feasible.","assignee":null,"id":2056861,"pull_request":{"patch_url":"https://github.com/sunspot/sunspot/pull/114.patch","html_url":"https://github.com/sunspot/sunspot/pull/114","diff_url":"https://github.com/sunspot/sunspot/pull/114.diff"},"number":114,"labels":[],"title":"Allow to specify an ActiveRecord scope to filter search results","closed_at":null,"html_url":"https://github.com/sunspot/sunspot/issues/114","url":"https://api.github.com/repos/sunspot/sunspot/issues/114","milestone":null},"action":"created","comment":{"created_at":"2011-11-25T22:12:30Z","updated_at":"2011-11-25T22:12:30Z","user":{"gravatar_id":"23455f549be3b3477b3f8b4a8259eff0","id":243989,"url":"https://api.github.com/users/rposborne","login":"rposborne","avatar_url":"https://secure.gravatar.com/avatar/23455f549be3b3477b3f8b4a8259eff0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"My use case doesn't make use of pagination so it's hard to tell but it's nice to be able to use eager loading for the objects loaded for sunspot.\r\n\r\n","id":2878560,"url":"https://api.github.com/repos/sunspot/sunspot/issues/comments/2878560"}}