lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@lucene.com>
Subject Re: IndexReader.lastModified() not correct
Date Wed, 07 Aug 2002 18:20:21 GMT
Halácsy Péter wrote:
> I implemented the worst solution. I've checked the modification time of the directory
containing my index. It's good on windows but not on unix. now I'll use your code.

Why doesn't this work on unix?

> I have only one question:
> is it faster to iterate on segments:
>   SegmentInfos infos = new SegmentInfos();
>     infos.read(directory);
> 
> or you could use directory.list() and check the file extensions?

I think it should be faster to iterate on segments.

Doug


--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message