Sorry, can't think of any way to do this, beyond possibly making one  
massive query to start with, finding the page you want, then querying  
for that page.

You'd want to do this with search_for_ids, so you don't instantiate  
all the ActiveRecord objects. You can find attribute values in  
@results[:matches] - stored as timestamps, of course, not Time objects.

-- 
Pat

On 21/04/2009, at 11:14 PM, ACTRAiSER wrote:

>
> Hello,
>
> i have a large list of events with start dates and i what i want to
> show in the end is the list including pagination starting on the page
> where the first event occurs as of today, so this may be page 3 to
> start with and not page 1. So the challenge here is that i want to
> forward directly to the page where events start with date >= Time.now
> but give the user still the possiblity to flip back to previous dates
> in the list via the usual pagination.
>
> This means i cannot search by date range because this would not
> consider earlier events in the results.
>
> Is there a way  with/after performing the search in which ts can let
> me know the page where a particular date (Time.now) appears and let me
> determine the correct page number for the view in this case? Or is
> there a solution which has nothing to do with TS at all I didnt think
> about? :-)
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to