lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Deleting document by file name
Date Thu, 01 Feb 2007 14:50:45 GMT
I see now :)
Thank u all for your support



-----Original Message-----
From: WATHELET Thomas [] 
Sent: Thursday, February 01, 2007 3:28 PM
Subject: RE: Deleting document by file name

*****  This message comes from the Internet Network *****

do something like this:
public class Index extends IndexModifier { ...
 public int deleteDocuments(String field, String value) throws
IOException {
        return super.deleteDocuments(new Term(field, value));
use like this :
index.deleteDocuments(filed name, field value);



	Sent: 01 February 2007 09:53
	Subject: Deleting document by file name


	I have a list of filenames like 
	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. 



	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:
For additional commands, e-mail:

View raw message