Hi Joe Sorry for the slow reply, but the following should do the trick:
Model.define_indexes Model.sphinx_facets.collect &:name Cheers -- Pat On 28/05/2012, at 5:13 PM, JoeLoui wrote: > Hi, I have a Rails app, and I need the facet names of a certain model. > Obviously doing Model.facets.keys is not an option. Is there a way to > do this? > > -- > 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.
