rsolr and rsolr-ext updated to 0.10.1

13 views
Skip to first unread message

matt mitchell

unread,
Nov 13, 2009, 3:13:41 PM11/13/09
to rsolr
I've updated both rsolr and rsolr-ext to 0.10.1 -
http://github.com/mwmitchell/rsolr/blob/master/CHANGES.txt

The big changes are the way connecting to jruby is handled and rsolr
now has core support for pagination. I thought a lot about this and
came to the conclusion that pagination is something that most apps
need to do with search results. It works like this:

solr = RSolr.connect
# current page is 1, 10 per page
results = solr.paginate 1, 10, :q=>'xxx'

You can now throw the results['response']['docs'] array into the
will_paginate view helper for effortless pagination. See the CHANGES
and specs for more details. RSolr::Ext now longer has the :page and/
or :per_page keys. Just use the #paginate methods.

I have also converted all of the rsolr tests to rspec. All mocks for
now, but I hope to get in some integration tests as well. Minus the
direct handler, RSolr has 100% code coverage.

RSolr is now also compatible with Ruby 1.8, Ruby 1.9.1 and JRuby 1.3.

Matt

Mat Brown

unread,
Nov 13, 2009, 3:15:03 PM11/13/09
to rs...@googlegroups.com
Matt - great to hear, congrats! Looking forward to taking it for a
spin with Sunspot.
Reply all
Reply to author
Forward
0 new messages