Hi, I am new to Thinking Sphinx/Sphinx. I have my indexes defined as in 
deal.rb

define_index 'merchant_deals' do
   indexes user.company(:name), :as => :company_name
   has "COUNT(slots.id)", :as => :slots_count, :type => :integer
   has "COUNT(slots.manage)", :as => :managed_slots, :type => :integer
   join slots
end

Is there any way to access :has_managed_slots for each Deal? 
I have tried using Deal.search('Touch', :select=>"deals.*, 
COUNT(slots.manage) as managed_slots", :joins => [:slots]). Problem with 
this approach is that, it also returns nil. 


-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/thinking-sphinx/-/QviW_2VGfzYJ.
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