RE: Deleting document by file name

2007-02-01 Thread DECAFFMEYER MATHIEU
I see now :) Thank u all for your support __ Matt -Original Message- From: WATHELET Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 3:28 PM To: java-user@lucene.apache.org Subject: RE: Deleting document by file name

RE: Deleting document by file name

2007-02-01 Thread WATHELET Thomas
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); _

RE: Deleting document by file name

2007-02-01 Thread DECAFFMEYER MATHIEU
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

Re: Deleting document by file name

2007-02-01 Thread Erick Erickson
Believe it or not, you delete items with IndexReader . 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 <[E