I don't think there is anything else. That is how I wrote applications that used Lucene at my previous job. It worked, but those indices changed only hourly.
Otis --- James Ricci <[EMAIL PROTECTED]> wrote: > 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:[EMAIL PROTECTED]] > 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
