Depends on the OS, I believe.  Under UNIX your IndexReader should still
have a handle to the file descriptor(s).
Under Winblows....who knows.  It probably wouldn't let you delete the
index files, saying that some application is still using them.

Otis


--- Eddie Chan <[EMAIL PROTECTED]> wrote:
> hi,
>       What will happen is the index is deleted or can the index be deleted
> if a
> IndexReader is open?
> 
> eddie
> 
> -----Original Message-----
> From: Doug Cutting [mailto:[EMAIL PROTECTED]]
> Sent: 06 January 2003 18:56
> To: Lucene Users List
> Subject: Re: Lucene and thread safety
> 
> 
> Lucene is thread and process safe.
> 
> An IndexReader, once opened, always reflects the same state of the
> index.  To see changes made by another thread or process you must
> open a
> new IndexReader.
> 
> Doug
> 
> Joe Consumer wrote:
> > I read a while back that Lucene is not thread safe.
> > That was in the FAQ on Lucene at jakarta, but that was
> > in June of 2001.  Has there been any changes in this?
> > I remember reading something that said Lucene was
> > thread safe when I first starting looking at Lucene,
> > but I don't recall the date of the article.
> >
> > I'm using Lucene right now and very happy with the
> > results, but I need to know if I should try to
> > accomodate for thread safety or not.  What are the
> > risks of doing "dirty reads"?
> >
> > thanks
> > charlie
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.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]>
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to