Hi!

I have two columns, available_from and available_till and I want to filter
the search results from a date given by the user.

I have in my define_index block

has 'DATE(available_from)', :as => :check_in, :type => :datetime
has 'DATE(available_till)', :as => :check_out, :type => :datetime

So how do I search if the user enters

checkin: Date.today
checkout: Date.tomorrow

so that Date.today..Date.tomorrow is inside available_from..available_till

Thanks!

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