This will help: http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexReader.html#getCurrentVersion(org.apache.lucene.store.Directory)
Otis --- Luke Shannon <[EMAIL PROTECTED]> wrote: > It would nice if the IndexerSearcher contained a method that could > return > the last modified date of the index folder it was created with. > > This would make it easier to know when you need to create a new > Searcher. > > ----- Original Message ----- > From: "Otis Gospodnetic" <[EMAIL PROTECTED]> > To: "Lucene Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, November 16, 2004 8:23 AM > Subject: Re: IndexSearcher Refresh > > > > I don't think so, you have to forget or close the old one and > create a > > new instance. > > > > Otis > > > > --- Ravi <[EMAIL PROTECTED]> wrote: > > > > > Is there a way to refresh the IndexSearcher object with the newly > > > added > > > documents to the index instead of creating a new object? > > > > > > Thanks in advance, > > > Ravi. > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]