Right, fixed this in Riddle and thus in Thinking Sphinx. Thanks Piotr for letting me know about it.
Cheers -- Pat On 20/10/2008, at 8:07 AM, Pat Allan wrote: > > Ah, definitely a bug then. I'll check it out. > > TS can figure out type, unless you're using a string (raw SQL) instead > of methods/symbols to define the column. > > Cheers > > -- > Pat > > On 20/10/2008, at 6:29 AM, Piotr Sarnacki wrote: > >> >> They are boolean, but I thought that to_f method was called cause ts >> could not figure out type. Without :type option it still wants to >> call >> to_f >> >> Backtrace: http://pastie.org/private/9wp9oziwwgcktmwahwljnq >> >> On Oct 19, 3:49 pm, Pat Allan <[EMAIL PROTECTED]> wrote: >>> Why are you explicitly setting the types on the attributes? Are they >>> not boolean columns? >>> >>> On 19/10/2008, at 4:48 PM, Piotr Sarnacki wrote: >>> >>> >>> >>>> Hi! >>> >>>> I've added 2 attributes to my index: >>>> has virtual, :type => :boolean >>>> has active, :type => :boolean >>> >>>> I've got error: "NoMethodError: undefined method `to_f' for >>>> true:TrueClass" in riddle/lib/riddle/client/filter.rb >>> >>>> I've added to_f method to true and false (http://pastie.org/295633) >>>> and it works now, but it's obviously not the best solution :) >>> >>>> Am I missing something? >>> >>>> Thanks, >>>> Peter >>> >>> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
