lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neeraj Gupta" <>
Subject Re: checking existing docs before indexing
Date Thu, 12 Jul 2007 14:20:41 GMT

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.


"Heba Farouk" <> 

07/12/2007 06:57 PM
Please respond to,


checking existing docs before indexing

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



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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message