search for: add_then_delete_fr

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

Did you mean: add_then_delete_fred
2006 Sep 14
1
Possiible Bug ? indexWriter#doc_count counts deleted docs after #commit
...and output follow: ===== require ''rubygems'' require ''ferret'' p Ferret::VERSION @doc = {:id => ''44'', :name => ''fred'', :email => ''abc at ozemail.com.au''} @dir = Ferret::Store::RAMDirectory.new def add_then_delete_fred @writer = Ferret::Index::IndexWriter.new(:dir => @dir) p "adding doc :id=#{@doc[:id]}" @writer << @doc p "doc_count=#{@writer.doc_count}" p "deleting doc :id=#{@doc[:id]}" @writer.delete(:id, @doc[:id]) p "doc_count=#{@writer.doc_count}&...