Thanks Pat, coming from Solr just thought it was such a simple thing to have. Looking forward for TS updates!
Rex. On Mon, Oct 25, 2010 at 9:04 PM, Pat Allan <[email protected]> wrote: > Hi Rex > > Unfortunately string attributes can't be used in filters - at least, not > with TS and Sphinx 0.9.9. Sphinx 1.10-beta does have proper support, but TS > doesn't play along with that new feature just yet. > > The docs cover some ways to work around this: > http://freelancing-god.github.com/ts/en/common_issues.html#string_filters > > Hope this helps - let me know if there's any more issues. > > Cheers > > -- > Pat > > On 25/10/2010, at 8:29 PM, rex.chung wrote: > > > I'm using Rails3 , sphinx 9.9.0, thinking_sphinx 2.0.0rc1 > > Tried both in Postgres and MySQL. > > > > Somehow I couldn't get a simple attribute filter to work. I've new to > > sphinx but I've used Solr before. > > I'm searching with: > > Company.search :with => {:postcode => "2000"} > >> returns [] > > > > class Company < ActiveRecord::Base > > > > define_index do > > indexes "lower(companies.company_name)", :as => :name, :sortable > > => true > > has postcode > > group_by "companies.company_name", "postcode" > > end > > > > end > > > > I can't see anything wrong in particular comparing with the doc, > > please enlighten me if there's something so obvious that I'm missing. > > > > Thanks, > > Rex. > > > > -- > > 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. > > > > -- > 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. > > -- 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.
