String facets are actually converted to integers - integers are something that Sphinx understands very well.
Ideally, you want to create the facet some like this: has association.column, :facet => true If this doesn't work, perhaps give us some details on the model, association and column, and I can be a bit more precise with my suggestions. Cheers -- Pat On 14/01/2011, at 5:13 PM, Raghu wrote: > Is there anyway of defining facet on an associated model's column > which is of type int?Does sphinx convert all fields defined as facets > to strings if they are of an associated models columns? > > -- > 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.
