Thanks very much, that is what I want to hear!

Lisheng

-----Original Message-----
From: Otis Gospodnetic [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 02, 2004 4:13 PM
To: Lucene Users List
Subject: Re: Thread safety


1. yes
2. yes error, meaningful, it depends what you find meaningful :)
3. searcher will still find the document, unless you close it and
reopen it (searcher)

Otis

--- "Zhang, Lisheng" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have an urgent question about thread safety in lucene,
> from lucene doc and code I could not get a clear answer.
> 
> 1. is Searcher (IndexSearcher, MultiSearcher ..) thread
>     safe, can multi-users call search(..) method on the
>     same object at the same time?
> 
> 2. if on the same object, one user calls close( ) and
>     another calls search(..), I assume we should have a
>     meaningful error message?
> 
> 3. what would happen if one user calls Searcher.search(..),
>     but at the same time another user tries to delete that
>     document from index files by calling IndexReader.delete(..)
>     (either through two threads or two separate processes)?
> 
> A brief answer would be good enough for me now, thanks
> very much in advance!
> 
> Lisheng
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to