The results aren't grouped at all, they're just sorted by time segment, and 
then within each segment, by relevancy.

So, you'd have to go through the results yourself and figure out which records 
are for the last hour, last week, etc. Not impossible at all, but maybe too 
much hassle? Depends what you're after, I guess.

-- 
Pat

On 01/06/2010, at 11:23 AM, badnaam wrote:

> How does this work exactly? Are the results grouped by the time
> segments i.e. last_hour or last week? So if I am doing the following,
> how can I extract what records belong in last_hour segement and what
> belong in last_week? or do I need to use a grouping_by functionality?
> 
> m = ThinkingSphinx.search(:geo => ll, :with => {"@geodist" => 0.00..
> (40 * 1609.344)}, :latitude_attr => :lat, :longitude_attr
> => :lng, :sort_by =>:created_at, :sort_mode => :time_segments)
> 
> -- 
> 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.
> 

-- 
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