Displaying 1 result from an estimated 1 matches for "a_fairly_long_phrase".
2006 Dec 07
8
crash on repeated search
..._ferret_test.rb
.......rw_ferret_test.rb:20: [BUG] rb_gc_mark(): unknown data type
0x28(0x402ba3a4) non object
ruby 1.8.2 (2005-04-11) [i386-linux]
Aborted
Here''s the code:
require ''rubygems''
require ''ferret''
include Ferret
def phrase(num)
"a_fairly_long_phrase%05d"%num
end
LOOPS=(ARGV[1]||40).to_i
_fields = Index::FieldInfos.new
_fields.add_field :phrase, :term_vector => :no, :store => :no, :index =>
:untokenized
$phrases=I.new(:field_infos=>_fields)
phrase(0).upto(phrase(LOOPS)){|phrase| $phrases << {:phrase=> phrase} }
@p...