Hi Kyle

Try the following instead:

    ThinkingSphinx.search(
      ‘Iverson’,
      :middleware => ThinkingSphinx::Middlewares::RAW_ONLY,
      :classes    => [Contact, Contract, License]
    )

Cheers

— 
Pat

> On 23 Dec 2015, at 9:10 am, Kyle Ginavan <[email protected]> wrote:
> 
> I see *.results is not longer supported. I'm trying to do something very 
> similar where I get the ids and class associated to each id:
> 
> ThinkingSphinx.search_for_ids( "Iverson", {:classes => [Contact, Contract, 
> License]} ).results
> 
> What is the current way to accomplish this?
> 
> Cheers!
> 
> On Friday, October 30, 2009 at 10:54:41 PM UTC-5, Pat Allan wrote:
> 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 unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to