Hi, The IndexModifier class always opens up an IndexWriter in the init method. If we need to update a document, it closes the IndexWriter and opens up IndexReader to delete the desired document. Then again it opens IndexWriter to add the document to the index.
Instead can't we pass one extra parameter to the constructor that determines whether the operation required is exclusively insert or delete/update. If it is just insert, we open the IndexWriter first. If it is delete/update, we open IndexReader first. If we do this will there be any issues? Thanks, -Vasu --------------------------------- How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.