David Balmain wrote:
> On 4/9/07, Stephen Sykes <[EMAIL PROTECTED]> wrote:
>>         from /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'
>>         from /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'
>>         from
>> /usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:380:in
>> `search_each'
>>         from test.rb:22
>>
>>
>> ..as well as segfaults sometimes.
>>
>> Any ideas?  My index is about 130Mb, but I can try to make some test
>> case if needed.
> 
> Hi Stephen,
> 
> A test case would be great. If you can give me one I'll get to work on
> it right away.
> 
> Cheers,
> Dave

Dave, the problem has gone away.  I was using some code that put items 
in the index as an array of strings - the output of readlines.  Like 
this:

index.add_document :file => path, :content => file.readlines

When you try to apply highlighting to items like that, it breaks.  So 
now I just join the output of readlines with a space, and all is well.

Best wishes,
Stephen

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to