Hi Christian If you want to filter by the strings, then you'd need to collect CRC32 integers for each string value, and treat that as an MVA of integers. Then, when filtering, filter by the CRC32 value (TS adds a to_crc32 method to String instances - useful for caching in the db as well?).
Is that enough detail? Can be more precise if needed :) Cheers -- Pat On 15/06/2010, at 2:34 AM, Christian Aust wrote: > Hi all, > > my ActiveRecord model comes with a method returning an array of > strings which I'd like to search with sphinx. I could cache the method > result in the DB, because I know that sphinx will only index what's in > there. But how could I create a multi-valued attribute from a > (separated) string? > > Any hints are appreciated. 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. > -- 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.
