lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <...@teamware.com>
Subject Which is faster/better
Date Tue, 25 Nov 2008 05:52:50 GMT
In 2.4, as well as IndexWriter.deleteDocuments(Term) there is also 
IndexReader.deleteDocuments(Term).

I understand opening a reader is expensive, so does this means using 
IndexWriter.deleteDocuments would be faster from a closed index position?

As the IndexReader instance is newer, it has better Javadocs, so it's unclear 
which is the 'right' one to use.

Any pointers?
Antony


---------------------------------------------------------------------
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