Hi, You an use updateDocument() method of IndexWriter to update any existing document.. It searches for a document matching the Term, if document existes then delete that document. After that it adds the provided document to the indexes in both the cases whether document exists or not.
Cheers, Neeraj "Heba Farouk" <[EMAIL PROTECTED]> 07/12/2007 06:57 PM Please respond to java-user@lucene.apache.org, [EMAIL PROTECTED] To java-user@lucene.apache.org cc Subject checking existing docs before indexing Hello i'm a newbie to lucene world and i hope that u help me. i was asking is there any options in IndexWriter to check if a document already exsits before adding it to the index or i should maintain it manually ?? thanks in advance Yours Heba --------------------------------- Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. The information contained in this e-mail and any accompanying documents may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message, including any attachments. Any dissemination, distribution or other use of the contents of this message by anyone other than the intended recipient is strictly prohibited.