Hello, and a tiny patch

3 views
Skip to first unread message

Thibaut Barrère

unread,
Jan 2, 2009, 10:53:26 AM1/2/09
to Thinking Sphinx
Hi,

I just installed Sphinx and Thinking Sphinx and I'm going to try these
out for two projects. First I want to say thank you for this very
helpful library - I like what I've seen so far a lot.

One of the project I'm working on involves geocoding. I've been trying
to use "has latitude, longitude" but got a "nil is not a Symbol" error
message while trying to index my content (latitude and longitude are
decimal in my case). After googling here and debugging, I found out
that I had to explicity :type => :float in order to get things right.

Here's a patch (not sure the wording is appropriate, please adapt!) to
ensure the newcomer gets a better understanding of what's happening:

http://gist.github.com/42578

cheers!

thanks,

Thibaut
--
http://blog.logeek.fr

Pat Allan

unread,
Jan 4, 2009, 11:35:44 AM1/4/09
to thinkin...@googlegroups.com
Thanks for that Thibaut, I've just pushed a change live that treats
decimals as floats automatically, but raises an error in unsupported
situations.
http://github.com/freelancing-god/thinking-sphinx/commit/573aa5559dd384f038d5e939c5ffd37da1d3a335

Cheers

--
Pat
Reply all
Reply to author
Forward
0 new messages