Hi Bob Great to know you've got a solution that works.
That said, the following syntax should do the job (when the region field was faceted): @facets = Trip.facets 'africa' @results = @facets.for(:region => 'Africa') You did say you'd tried this in your first email, though... if you want to try it again, maybe we can figure out what the fault is. But if you're happy with the current solution, stick with that :) -- Pat On 09/03/2010, at 12:25 PM, Bob B. wrote: > And now to answer my own question, or at least give a workaround :) > > I found that using attributes instead of indexes for the facets is > better. My new define_index block: > https://gist.github.com/af5750033182ee184e9a > > Now it returns a list of hash with IDs and I fill in the appropriate > names with a DB call. > > Bob > > -- > 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.
