You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by James Ricci <ja...@riccinursery.com> on 2002/06/11 20:16:22 UTC

Are IndexReader objects always up to date?

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Are IndexReader objects always up to date?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
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 <ja...@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:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


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

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>