In effect, IndexWriter's updateDocument() will first delete the document
containing specific term, then add the document. It just wrap delete&add
as a thread safe method.

Andy

-----Original Message-----
From: Doron Cohen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 3:58 PM
To: java-user@lucene.apache.org
Subject: Re: Update documents

WATHELET Thomas wrote:

> Is-it possible to update a document's field without deleting the
> document and add it again into the index?

Not really... see the FAQ, especially "How do I update a document or a
set
of documents that are already indexed?", and also see javadocs for
IndexWriter's updateDocument() methods.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to