You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Mufaddal Khumri <MK...@allegromedical.com> on 2006/03/31 22:33:55 UTC

RE: Update or Delete Document for Lucene 1.4.x

The way you update a document in lucene is by deleting the current one
and adding a new one. 

-Mufaddal.

-----Original Message-----
From: Don Vaillancourt [mailto:donv@webimpact.com] 
Sent: Friday, March 31, 2006 1:37 PM
To: java-user@lucene.apache.org
Subject: Update or Delete Document for Lucene 1.4.x

Hi All,

I need to implement the ability to update one document within a Lucene 
collection.

I haven't been able to find anything in the API.  Is there a way to 
update one document or delete a document so that I can add an update?

Thank You

-- 
Don Vaillancourt
Director of Software Development
WEB IMPACT INC.
phone: 	 416-815-2000 ext. 245
fax: 	 416-815-2001
toll free: 	 866-319-1573 ext. 245
email: 	 donv@web-impact.com <ma...@webimpact.com>
blackberry: 	 donv@rogers.blackberry.net 
<ma...@rogers.blackberry.net>
web: 	 http://www.web-impact.com
address: 	 http://www.mapquest.ca 
<http://www.mapquest.com/maps/map.adp?country=CA&addtohistory=&formtype=
address&searchtype=address&cat=&address=99%20Atlantic%20Ave&city=Toronto
&state=ON&zipcode=M6K%203J8> 


This email message is intended only for the addressee(s) and contains 
information that may be confidential and/or copyright.

If you are not the intended recipient please notify the sender by reply 
email and immediately delete this email.

Use, disclosure or reproduction of this email by anyone other than the 
intended recipient(s) is strictly prohibited. No representation is made 
that this email or any attachments are free of viruses. Virus scanning 
is recommended and is the responsibility of the recipient.


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


Re: Update or Delete Document for Lucene 1.4.x

Posted by Don Vaillancourt <do...@webimpact.com>.
Yeah, thanks.

Found what I wanted.

FilterIndexReader.doDelete()

Thanks again


Mufaddal Khumri wrote:
> The way you update a document in lucene is by deleting the current one
> and adding a new one. 
>
> -Mufaddal.
>
> -----Original Message-----
> From: Don Vaillancourt [mailto:donv@webimpact.com] 
> Sent: Friday, March 31, 2006 1:37 PM
> To: java-user@lucene.apache.org
> Subject: Update or Delete Document for Lucene 1.4.x
>
> Hi All,
>
> I need to implement the ability to update one document within a Lucene 
> collection.
>
> I haven't been able to find anything in the API.  Is there a way to 
> update one document or delete a document so that I can add an update?
>
> Thank You
>
>   


-- 
Don Vaillancourt
Director of Software Development
WEB IMPACT INC.
phone: 	 416-815-2000 ext. 245
fax: 	 416-815-2001
toll free: 	 866-319-1573 ext. 245
email: 	 donv@web-impact.com <ma...@webimpact.com>
blackberry: 	 donv@rogers.blackberry.net 
<ma...@rogers.blackberry.net>
web: 	 http://www.web-impact.com
address: 	 http://www.mapquest.ca 
<http://www.mapquest.com/maps/map.adp?country=CA&addtohistory=&formtype=address&searchtype=address&cat=&address=99%20Atlantic%20Ave&city=Toronto&state=ON&zipcode=M6K%203J8> 


This email message is intended only for the addressee(s) and contains 
information that may be confidential and/or copyright.

If you are not the intended recipient please notify the sender by reply 
email and immediately delete this email.

Use, disclosure or reproduction of this email by anyone other than the 
intended recipient(s) is strictly prohibited. No representation is made 
that this email or any attachments are free of viruses. Virus scanning 
is recommended and is the responsibility of the recipient.