lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derya Kasapoglu" <doz...@gmx.de>
Subject Re: UpdateIndex
Date Tue, 23 Aug 2005 10:54:46 GMT
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 <miles@runtime-collective.com>
> An: java-user@lucene.apache.org
> 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 <miles@runtime-collective.com>
> Runtime Collective Ltd.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 

-- 
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message