Facets should work through a has-many - although it's recommended they're kept as collections of ids/integers ( eg: users.id, :as => :user_ids, :facet => true) instead of strings (users.name, :as => :user_names, :facet => true) as Sphinx has no concept of multi-value strings, so a CRC32 hack is needed to get around that. TS does that for you, but there is the possibility of collisions.
-- Pat On 18/08/2011, at 2:38 AM, Kris wrote: > Is it possible to provide facets for a has_many relationship or do I > need to 'flatten' the ids in to a custom column and index that? > > -- > 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. > -- 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.
