Hi all,
how do I correctly index and filter by a date attribute?
Project.published_at => Date
define_index do
# ...
has published_at, :as => :published_at, :type => :datetime
# ...
end
Project.search :with=>{:published_at=>Date.today}
gives me incorrect results. What am I doing wrong? Regards,
Christian
--
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.