lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: IndexReader.lastModified();
Date Mon, 05 May 2003 18:36:47 GMT
I don't remember any more, but maybe lastModified() returns a new value
only after the IndexWriter is close()d.  You may be able to tell from
looking at the source.... or you should just try that and see.


--- Rob Outar <> wrote:
> Hi all,
> 	I am experiencing a weird problem in Linux.  When I initially create
> the
> index I store the date with the IndexReader.lastModified() call.  I
> then
> have a Junit test that adds a document to the index, I then have a
> method
> that checks if the index has changed and if it has I create a new
> IndexSearcher.  The problem is the date the index was created and the
> most
> recent call to IndexReader.lastModified()(after adding a document)
> are
> returning the same value so when I query on the new document I just
> added it
> is failing because according to the dates, the index has not changed
> so I
> did not create a new IndexSearcher!!!
> 	Has anyone experience this before?  If so, is there a known fix?
> Thanks,
> Rob
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message