lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Update performance/indexwriter.delete()?
Date Thu, 14 Apr 2005 16:08:00 GMT
Roy Klein wrote:
> So one thing I've been wondering:  Why do you need to do deletes from an
> indexreader?

Is this not in the FAQ?  It should be...

IndexWriter can only append documents to an index.

An IndexReader is required to, given a term, find the document number to 
mark deleted.

Also, in the current sources the cost of opening an IndexReader has been 
greatly reduced.  Now the norms and the term index are read lazily, so 
that only a few tiny files are actually read when an IndexReader is 
opened, the rest are merely opened.

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message