David, I am using revision 770 from trunk and notice that the highlight problem still occurs if a PhraseQuery like '"big house"~2000' is used. The same works for smaller numbers ((like '"big house"~10') but crashes when used with larger numbers leaving the following message on the term:
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4.1/lib/ferret/index.rb:197: [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i686-linux] David Balmain wrote: > On 4/16/07, Stephen Sykes <[EMAIL PROTECTED]> wrote: >> >> ..as well as segfaults sometimes. >> > 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. > > Hi Stephen, > > This was in fact a bug. It is now fixed and will be released in Ferret > 0.11.5. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

