RE: IndexReader.deleteDocument in Lucene 3.6

2012-05-25 Thread Edward W. Rouse
e does become an issue I might need to tweak this a bit, but it does ensure that a deletion is successful or it throws an exception. > -Original Message- > From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik > Seeley > Sent: Friday, May 25, 2012 12:40 PM >

Re: IndexReader.deleteDocument in Lucene 3.6

2012-05-25 Thread Yonik Seeley
On Fri, May 25, 2012 at 5:23 AM, Nikolay Zamosenchuk wrote: > IndexWriter.deleteDocument(..) is not final, > but doesn't return any result. Deleted terms are buffered for good performance, so at the time of IndexWriter.deleteDocument(Term) we don't know how many documents match the term. > Can a

IndexReader.deleteDocument in Lucene 3.6

2012-05-25 Thread Nikolay Zamosenchuk
Hi everyone. We are using IndexReader.deleteDocument(Term) method to delete documents, since it returns the number of deleted documents. This is used to be sure that some docs were removed. We must know for sure if documents were deleted. But in lucene 3.6 this method is final and can't be overridd