Nope, not there yet - feel free to patch :)

--  
Pat

On 31/03/2009, at 2:50 AM, Thuva Tharma wrote:

>
> Hello Pat,
>
> Thank you for your reply. Fetching the actual objects is not hard. I
> just wanted to make sure that I don't implement functionality that is
> already available in Thinking Sphinx.
>
> -- Thuva
> On Mar 29, 3:27 am, Pat Allan <[email protected]> wrote:
>> Is it possible in Thinking Sphinx right now? No. You'll have to
>> manually translate the results.
>>
>> But, going forward, could it be possible? I think so. A facet should
>> be able to figure out if it's from an association, and if it is a
>> reference to the primary key. Given that information, the related
>> objects should be able to be figured out.
>>
>> No idea when I'll find time to implement that though.
>>
>> --
>> Pat
>>
>> On 29/03/2009, at 4:04 AM, Thuva Tharma wrote:
>>
>>
>>
>>> 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