Displaying 1 result from an estimated 1 matches for "max_file_length".
2006 Jun 02
1
Indexing fails -- _ntc6.tmp exceeds 2 gigabyte maximum
...6-06-01 22:42 _ntc6.f0
-rw-r--r--  1 bill bill    1000000 2006-06-01 22:42 _ntc6.f1
-rw-r--r--  1 bill bill         30 2006-06-01 22:42 segments
-rw-r--r--  1 bill bill         16 2006-06-01 22:14 _ntc6.fnm
Code:
#------------
index = Index::Index.new(:path => "/var/cache/ferrets")
max_file_length = 25000
Dir.glob(allfiles).each do
  |file|
  doc = Document::Document.new()
  doc << Document::Field.new(:file, file,
                             Document::Field::Store::YES,
                             Document::Field::Index::UNTOKENIZED)
  doc << Document::Field.new(:content, IO.r...