Hi, sorry for what is probably a basic question.
I have a model (film) that people add to their wish list. Each film,
therefore, has many wish_list_item's.
I would like to be able to find films ranked by their COUNT of
wish_list_items (ie what film is on the most wish_lists).
How can I do this? CAN I in fact do this with (Thinking) Sphinx or am
I stepping outside the boundary of what it does?
I tried:
class Film
has_many : wish_list_items
define_index do
indexes wish_list_items(:id), :as => :wli_id, :facet => true
end
end
but I think that might be the opposite of what I want... Film.facets
returns me nothing useful as far as I can tell.
Thanks for any help!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---