You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by HU...@ORACLE.COM on 2005/09/01 07:28:05 UTC

deleting documents from index

Hi,

In order to delete the documents in the index more efficiently during the incremental indexing process, I implement the batch deleting process on the application level. First  I  get the internal document ids based on the query, then only delete these documents based on the internal ids when the indexwriter is closed or the index is optimized since the internal document ids change only whent the index optimized. Could this be an issue ?
The reason for doing that is that deleting documents from the index in one thread fails sometimes when another thread is adding new documents in the same index.

Regards,
hui


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