If I have the path of the document, I cannot find the ID ? __________________________________ Matt
-----Original Message----- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 2:09 PM To: java-user@lucene.apache.org Subject: Re: Deleting document by file name ***** This message comes from the Internet Network ***** Believe it or not, you delete items with IndexReader <G>. You can either delete by document ID or by Term. Be aware that currently open searchers will still find these documents (even after they have been deleted) until the *searcher* is closed and reopened. Erick On 2/1/07, DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a list of filenames like > Corporate.htm > Logistics.htm > Merchant.htm > .... > that need to be deleted. > > For now on I give this list to my Search application that reads the idnex > and give the results, and if the path contains one of the filenames, I don't > display this hit ... Not really proper programming ... > > Is there a way to delete the document in the index instead with this > information ? > > Thank u. > > *__________________________________* > > * Matt******* > > > ============================================ > Internet communications are not secure and therefore Fortis Banque > Luxembourg S.A. does not accept legal responsibility for the contents of > this message. The information contained in this e-mail is confidential and > may be legally privileged. It is intended solely for the addressee. If you > are not the intended recipient, any disclosure, copying, distribution or any > action taken or omitted to be taken in reliance on it, is prohibited and may > be unlawful. Nothing in the message is capable or intended to create any > legally binding obligations on either party and it is not intended to > provide legal advice. > ============================================ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ============================================ Internet communications are not secure and therefore Fortis Banque Luxembourg S.A. does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. ============================================ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]