has "substring(date_column, 3, 4)", :as => :start_year, :type => :integer
No idea whether substring exists in MySQL or PostgreSQL, so consider the above as a pseudo-code example. Filtering though is like so:
Model.search :with => {:start_year => 0..2010}
This doesn't take months into account, though, but you get the idea :)
--
Pat
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/vNULtbWWiGcJ.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.