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 On 02/01/2009, at 10:53 PM, Thibaut Barrère wrote: > > 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 > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
