lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karsten F." <>
Subject Re: deleting documents with doc id
Date Sun, 27 Jul 2008 18:44:00 GMT


only to be sure:
You know IndexModifier.deleteDocument(int)?
It is deprecated, because you should use

What do you mean with "index is committed".
If you mean "optimize()" the document number will change (so there is a

best regards

cambazz wrote:
> hello,
> the thing is:
> I got a indexwriter and indexsearcher.
> I do a indexsearcher.getIndexReader.delete(int id)
> would not that cause problems? there is not a way to delete from
> indexwriter, and I think i will cause a lock issue deleting from
> indexsearcher.
> best,
> -C.B.
View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message