On Tue, 2005-08-23 at 13:53 +0200, Derya Kasapoglu wrote: > Thank you for your help!!! > > I try it without Analyzer! > > document.add(Field.Keyword("path", file[i].getAbsolutePath())); > > then > > Term term = new Term("path", file[i].getAbsolutePath()); > Query query = new TermQuery(term); > reader.delete(term); > > so is better! :) and it works!!!!
That's the easiest way to do it, keep one copy of the field that has gone through the StandardAnalyzer and one version as a keyword. Then you can use the keyword version when you need to look up a particular document, e.g. to delete it. -- Miles Barr <[EMAIL PROTECTED]> Runtime Collective Ltd. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]