Hi Matt

I've just updated the code to handle that specific error - it's  
comparing the length of a string to a variable that is nil (and now  
compares to 0 if nil).

That said, it means that Sphinx is throwing an error, we weren't  
getting to it though. The current code should at least throw that  
error now, and hopefully that'll give us some clues as to what the  
problem is.

When you've got a moment, if you could give the latest version of TS a  
spin, that'd be great.

Cheers

-- 
Pat

On 19/01/2009, at 2:18 PM, Matt Murphy wrote:

>
> Just a note to Pat and others:
>
> I was able to stop the exception from being raised by explicitly
> passing match_mode of :boolean or :extended.
>
> I'd be curious if anyone has any guesses as to why the exception was
> occurring (and still does with the other match modes).
>
>
>
> On Jan 13, 3:24 pm, Matt Murphy <[email protected]> wrote:
>> I should also add that I tried adding the @ character to the charset
>> table in the sphinx.yml settings as well as escaping the search  
>> string
>> first using Riddle.escape
>>
>> On Jan 13, 12:30 pm, "Matt Murphy" <[email protected]> wrote:
>>
>>> In the master branch with the stable version of sphinx I'm able to
>>> search for an email address... but it seems that in the 0.9.9 branch
>>> there is an error when I do this:
>>
>>> Model.search("someone@")
>>
>>> results in:
>>
>>> ArgumentError: comparison of Fixnum with nil failed
>>>         from /projects/foo/vendor/rails/activesupport/lib/ 
>>> active_support/whiny_nil.rb:55:in
>>> `<'
>>>         from /projects/foo/vendor/plugins/thinking_sphinx/lib/../ 
>>> vendor/riddle/lib/riddle/client.rb:501
>>
>>> Does anyone know if there is a workaround for this?
>>
>>> Escaping it with \ does not seem to make any difference...
> >


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