You should be able to access the raw Sphinx results via the following:
ids = ThinkingSphinx.search_for_ids 'Foo',
:classes => [Bar, Baz, Doom]
ids.results
In ids.results[:matches], you'll find the attributes hash, which
contains a class_crc value, which matches each model name's crc code
(ie: Bar.to_crc32).
It's not neat, but that's the only way at the moment.
--
Pat
On 29/10/2009, at 2:19 AM, halogen64 wrote:
>
> ThinkingSphinx.search_for_ids('Foo', :classes => [Bar, Baz, Doom])
>
> only gives me
>
> [1, 2, 4]
>
> For which I can do nothing with, is there anyway to get what class
> those ids belong to?
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---