lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MMach...@LEVI.com
Subject RE: Delete files
Date Tue, 15 Jul 2003 12:30:21 GMT
Hi Victor,
Thanks a lot, now I can delete documents in the index. Very nice!!! But I
have another question: when I do an upload file how I can to replace
automatically the old one in the directory, and how to identify this file in
the index to delete it ? I need some help. Thanks in advance
Michel 

-----Original Message-----
From: Victor Hadianto [mailto:victorh@nuix.com.au] 
Sent: Tuesday, July 15, 2003 1:08 AM
To: Lucene Users List
Subject: Re: Delete files

On Mon, 14 Jul 2003 07:11 pm, MMachado@LEVI.com wrote:
> Hi, I am new in Lucene. I have a problem with my code. Somebody can help
me
> why I can't delete some files.Maybe I missing something. Thanks in
advance.

You have IndexWriter opened while trying to delete document. Use IndexReader

to delete document and then open IndexWriter to optimize.

> Regards,
>
> Michel
victor


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

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


Mime
View raw message