lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Ricci <ja...@riccinursery.com>
Subject RE: Are IndexReader objects always up to date?
Date Tue, 11 Jun 2002 18:58:27 GMT
Otis,

Thanks. This seems to agree with what I've seen myself. The system I'm
working on is extremely dynamic, so this will be an issue for me. The method
I think you're talking about is IndexReader.lastModified. I'm not sure this
actually tells me if the IndexReader I have is up to date, but it would tell
me if there has been a change since I opened it (assuming I have saved off
the open time). Is there something a little more direct?

James

-----Original Message-----
From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
Sent: Tuesday, June 11, 2002 2:23 PM
To: Lucene Users List
Subject: Re: Are IndexReader objects always up to date?


Hm, this sounds an awful lot like a FAQ, yet I don't see it in Lucene's
FAQ at jGuru.com.
You need to close and reopen the index(reader) if you want to see the
latest changes.
There is a method that you can use to figure out if the index has been
modified since you opened it.

Otis

--- James Ricci <james@riccinursery.com> wrote:
> Hi,
> 
> If I have an IndexReader object open, and someone else is using an
> IndexWriter to update the contents of an index, will my IndexReader
> automatically reflect the current contents of the index? If not, what
> must I
> do to refresh it?
> 
> James
> 
> --
> To unsubscribe, e-mail:  
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:lucene-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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

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


Mime
View raw message