Excellent, yes it works now with the latest plugin version on github. Thanks a lot (as usal) for the swift reply and support!
Please bump the gem to the latest version too when you have time for that. Greets Rocco On 10 Aug., 14:10, Pat Allan <[email protected]> wrote: > Thanks for the bug report - just fixed and pushed to github - let me > know if that helps :) > > -- > Pat > > On 10/08/2009, at 8:37 AM, ACTRAiSER wrote: > > > > > This ist the output of the search result information methods of the > > TS-Object for the query above: > > > ts.total_entries > > 6000 > > > ts.per_page > > 30 > > > ts.total_pages > > 200 > > > in my opinion before 1.2.x, the total_pages respected max_matches and > > therefor would be 10. > > > Greets > > -act > > > On 10 Aug., 09:23, ACTRAiSER <[email protected]> wrote: > >> Ever since updating to TS 1.2.x there is the problem that (likely) > >> the > >> Pagination is not respecting the max_matches modifier. > > >> Example: I want to query max_matches 300 in a set with 6000 records > > >> Model.search( > >> (""), > >> :page => (params[:page] || 1), > >> :per_page => 30, > >> :max_matches => 300, > >> ) > > >> In my result view i now unexpectatly see pagination links for all > >> available 6000 records (200 Pages). Clicking on the page-link for > >> page > >> 11 (which would be results 301-330), i get an error: > > >> searchd error (status: 1): offset out of bounds (offset=300, > >> max_matches=300) > > >> This is a correct behaviour since i have not requested more than 300 > >> results in the first place. So the actual querying seems to be just > >> fine, but when preparing the collection for will_paginate, there > >> seems > >> to be a problem or something has changed that I need to modify. > > >> My Pagination-Call in the view has not changed ever since: > > >> <%= will_paginate(@results, > >> :previous_label => '<!-- -->', > >> :next_label => '<!-- -->') %> > > >> Greets > >> -act > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---
