Right again Pat. Upgraded and things are running nicely! On May 17, 12:43 am, Pat Allan <[email protected]> wrote: > Hi Dave > > What version of Thinking Sphinx are you using? sphinx_attributes is a > relatively new addition (as of about six months ago). > > -- > Pat > > On 14/05/2010, at 5:32 AM, davejohnson wrote: > > > > > > > Hi all, > > > Is there something special that I need to do get access to the > > sphinx_attributes collection? > > > I am trying to access it on a result from a search but I am not > > getting anything out of it... > > > search = MenuItem.search(params[:what], :geo => [lat*2*Math::PI/ > > 360, lng*2*Math::PI/360], > > :order => "price DESC, @geodist DESC", > > :match_mode => :extended, > > :page => params[:page], > > :per_page => 10, > > :with => { > > :price => Range.new(0.0, params[:price].to_f), > > :rating => Range.new(params[:rating].to_f, 5.0), > > '@geodist' => Range.new(0.0, 10000.0) > > }) > > > puts search[0].sphinx_attributes['geodist'] # this throws an > > error: undefined method `sphinx_attributes' for #<MyObject: > > 0x103212790> > > > Thanks! > > > -- > > 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 > > athttp://groups.google.com/group/thinking-sphinx?hl=en. > > -- > 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 > athttp://groups.google.com/group/thinking-sphinx?hl=en.
-- 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.
