search for: doc_999

Displaying 1 result from an estimated 1 matches for "doc_999".

2006 Sep 15
2
Trouble with "updating" a document
...== require ''rubygems'' require ''ferret'' p Ferret::VERSION @dir = Ferret::Store::RAMDirectory.new @index = Ferret::Index::Index.new(:dir => @dir) (1..1000).each do |n| @index << {:id => "doc#{n}", :name => "name #{n}"} end @doc_999 = @index["doc999"] @doc_999.load if @doc_999 p "doc_999 not found" unless @doc_999 p "doc_999 name=#{@doc_999[:name]}" if @doc_999 @new_doc = {:id => "doc999", :name => "fred"} p "deleting and adding new doc999" @index.delete(&quot...