Yes, it returns null. But this is a little bit funny because the searching is correct and it finds the document whitch have changed! So want can i do!?
Is there an opportunity to get the document id? > --- Ursprüngliche Nachricht --- > Von: Miles Barr <[EMAIL PROTECTED]> > An: [email protected] > Betreff: Re: UpdateIndex > Datum: Tue, 23 Aug 2005 11:47:22 +0100 > > On Tue, 2005-08-23 at 12:38 +0200, Derya Kasapoglu wrote: > > i query the index for the path of the files in the directory and compare > the > > dates. > > But i have a Problem! > > I find out the files which have changed but i can not delete the documet > > from the index, i don't know why! > > > > In the Field "pathLC" is he path of documnts in lower case. > > Term term = new Term("pathLC", file[i].getAbsolutePath().toLowerCase()); > > delete(Term); > > > > Than i close the IndexReader!!! > > > > But i can still searching for the file which sould be deleted. > > When you call IndexReader#delete(Term) what value is returned? It should > return the number of matching documents it has deleted. > > If this value is 0, then your term is incorrect. > > > -- > Miles Barr <[EMAIL PROTECTED]> > Runtime Collective Ltd. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- GMX DSL = Maximale Leistung zum minimalen Preis! 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
