Displaying 3 results from an estimated 3 matches for "doc_count".
Did you mean:
dc_count
2006 Sep 14
1
Possiible Bug ? indexWriter#doc_count counts deleted docs after #commit
...: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}"
@writer.commit
@writer.close
@writer = nil
end
add_then_delete_fred
add_then_delete_fred
add_then_delete_fred
@reader = Ferret::Index:...
2006 Sep 14
2
Possiible Bug ? indexWriter#doc_count countsdeleted docs after #commit
Hi David,
> Deleted documents don''t get deleted until commit is called
Ok, but FYI, my experiments show that #commit doesn''t affect #doc_count,
even across ruby sessions.
On a different note, I''d like to request a variation of #add_document
which returns the doc_id of the document added, as opposed to self.
I''m trying to track down an issue with a large test index [600MB, 500k
docs] in which I need to update a document...
2007 Apr 28
6
Determine how many documents a term occurs in
Is there a fast way to determine how many documents a term occurs in,
besides iterating through every document with TermDocEnum?
--
Best regards,
Stian Gryt?yr