Alright. For the moment, re-add those set_property lines, and use  
strings, not symbols. Seems I've lost a little of the intelligence TS  
had pre-1.2. I'll add it back in tonight, but that should get you  
going for the moment.

-- 
Pat

On 30/07/2009, at 7:16 PM, Andrew Lippert wrote:

>
> Close......
>
> undefined method `length' for :lat:Symbol
> RAILS_ROOT: /Users/andrewlippert/Documents/Biznik/Source/trunk
>
> Application Trace | Framework Trace | Full Trace
> /opt/ruby-ent/lib/ruby/gems/1.8/gems/freelancing-god-thinking-
> sphinx-1.2.3/vendor/riddle/lib/riddle/client/message.rb:21:in `send'
> /opt/ruby-ent/lib/ruby/gems/1.8/gems/freelancing-god-thinking-
> sphinx-1.2.3/vendor/riddle/lib/riddle/client/message.rb:21:in
> `append_string'
> /opt/ruby-ent/lib/ruby/gems/1.8/gems/freelancing-god-thinking-
> sphinx-1.2.3/vendor/riddle/lib/riddle/client.rb:531:in `query_message'
> /opt/ruby-ent/lib/ruby/gems/1.8/gems/freelancing-god-thinking-
> sphinx-1.2.3/vendor/riddle/lib/riddle/client.rb:286:in `query'
> /opt/ruby-ent/lib/ruby/gems/1.8/gems/freelancing-god-thinking-
> sphinx-1.2.3/lib/thinking_sphinx/search.rb:203:in `populate'
> /opt/ruby-ent/lib/ruby/gems/1.8/gems/freelancing-god-thinking-
> sphinx-1.2.3/lib/thinking_sphinx/search.rb:279:in `call'
> /opt/ruby-ent/lib/ruby/gems/1.8/gems/freelancing-god-thinking-
> sphinx-1.2.3/lib/thinking_sphinx/search.rb:279:in
> `retry_on_stale_index'
> /opt/ruby-ent/lib/ruby/gems/1.8/gems/freelancing-god-thinking-
> sphinx-1.2.3/lib/thinking_sphinx/search.rb:200:in `populate'
> /opt/ruby-ent/lib/ruby/gems/1.8/gems/freelancing-god-thinking-
> sphinx-1.2.3/lib/thinking_sphinx/search.rb:149:in `total_entries'
> /Users/andrewlippert/Documents/Biznik/Source/trunk/app/controllers/
> search_controller.rb:14:in `all'
>
>
>
> On Jul 30, 11:07 am, Pat Allan <[email protected]> wrote:
>> Oh. It's a bug. All my fault.
>>
>> The underlying API is expecting :latitude_attribute,
>> not :latitude_attr, as the key. Just pushing the fix out now, will
>> probably take GitHub 15 minutes or so to have the new gem (v1.2.3)
>> available.
>>
>> Sorry for this - sloppy coding on my part.
>>
>> --
>> Pat
>>
>> On 30/07/2009, at 6:59 PM, Andrew Lippert wrote:
>>
>>
>>
>>
>>
>>> Sorry - still had the geo search option off. Here's the output:
>>> {:longitude_attr
>>> =
>>
>>> "lng
>>> ", :longitude
>>> =
>>
>>> -2.13505621250983
>>> , :latitude=>0.830836414209719, :latitude_attr=>"lat"}
>>
>>> On Jul 30, 10:57 am, Andrew Lippert <[email protected]> wrote:
>>>> Not a whole hell of a lot:  {}
>>
>>>> On Jul 30, 10:55 am, Pat Allan <[email protected]> wrote:
>>
>>>>> Well, it's progress, at least.
>>
>>>>> What does list.send(:client).anchor.inspect return?
>>
>>>>> --  
>>>>> Pat
>>
>>>>> On 30/07/2009, at 6:46 PM, Andrew Lippert wrote:
>>
>>>>>> list.send(:latitude_attr) does produce 'lat' in development as
>>>>>> well.
>>
>>>>>> On Jul 30, 10:42 am, Andrew Lippert <[email protected]> wrote:
>>>>>>> Bingo - I'm now able to reproduce the problem on development.
>>>>>>> Dumb,
>>>>>>> dumb, dumb. But a good step forward. I get the same error as on
>>>>>>> production now.
>>
>>>>>>> On Jul 30, 10:30 am, Pat Allan <[email protected]>  
>>>>>>> wrote:
>>
>>>>>>>> Okay... looks like you're using an old (pre 1.2) version of
>>>>>>>> Thinking
>>>>>>>> Sphinx on your development machine. Which is frustrating. I'd
>>>>>>>> much
>>>>>>>> rather it be the other way around. Can you update dev, see if  
>>>>>>>> you
>>>>>>>> get
>>>>>>>> the error locally?
>>
>>>>>>>> --
>>>>>>>> Pat
>>
>>>>>>>> On 30/07/2009, at 6:28 PM, Andrew Lippert wrote:
>>
>>>>>>>>> In production, it actually returns a result:
>>
>>>>>>>>> lat
>>
>>>>>>>>> A
>>
>>>>>>>>> On Jul 30, 10:16 am, Pat Allan <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>> Can you get the value of list.send(:latitude_attr)?
>>
>>>>>>>>>> --  
>>>>>>>>>> Pat
>>
>>>>>>>>>> On 30/07/2009, at 6:09 PM, Andrew Lippert wrote:
> >


--~--~---------~--~----~------------~-------~--~----~
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