This program reliably crashes for me (usually a segfault):

require 'rubygems'
require 'ferret'

reader=Ferret::Index::IndexReader.new ARGV
fields=reader.field_infos.fields
reader.max_doc.times{|n|
   fields.each{|field|
     reader.term_vector(n,field)
   } unless reader.deleted?(n)
   print "."; STDOUT.flush
}

As you can see, it just goes through the index, retrieving all the term 
vectors. I imagine term vectors must be enabled in at least one field to 
trigger this...

I've seen this problem on two different systems, running debian and 
ubuntu. It may well be the result of something I've done wrong, but if 
so, I don't know what. If anyone can provide some assistance with or 
information about this problem, I'd appreciate it.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to