Displaying 1 result from an estimated 1 matches for "test_delete2".
Did you mean:
test_delete
2006 Sep 15
2
Trouble with "updating" a document
...new doc999"
@index.delete("doc999")
@index << @new_doc
@doc_999 = @index["doc999"]
@doc_999.load if @doc_999
p "new_doc_999 not found" unless @doc_999
p "new_doc_999 name=#{@doc_999[:name]}" if @doc_999
@index.close
@index = nil
===
$> ruby test_delete2.rb
"0.10.4"
"doc_999 name=name 999"
"deleting and adding new doc999"
"new_doc_999 not found"