Currently, I have a setup that looks like the following:

class Business
  has_many :services

  define_index do
    indexes :name
    has services(:id), :as => :service_ids, :facet => true
  end
end

The following is a sample hash that may be returned when I do a
faceted search: Business.facets("keyword")

{ :service_ids => { 1 => 10, 2 => 20 } }

1 & 2 in the above hash are ids of service objects. Now, here is my
question:

Is it possible to do a faceted search that returns service objects
along with the count instead of service ids?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to