Someone correct me if I'm wrong but here's what you need to do. add an
attribute to your index

define index do
  has created_at
end

then filter the results by passing a :with parameter, for example

Model.search :with => {:created_at => 1.month.ago..Time.now}


On Fri, Jul 16, 2010 at 9:48 PM, Chiyu Ian He <[email protected]> wrote:

> I was just wondering how to use TS to do date range searches? I have a
> column in my table called created_at and I want to be able to search
> for all the jobs that I created from one date to another.
>
> Thanks,
>
> Ian
>
> --
> 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]<thinking-sphinx%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/thinking-sphinx?hl=en.
>
>


-- 
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.com

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