Yes, assuming that your searcher does not close/reopen the reader.
Conceptually, the indexsearcher takes a snapshot of your index at
the instant it's opened and uses that snapshot until you close the
underlying reader, so you should be fine.

Best
Erick

On Thu, Oct 16, 2008 at 6:17 AM, mahdi yari <[EMAIL PROTECTED]> wrote:

> hi dears
>
> i have a question of Lucene
>
> i have on index with 1,000 document with id field(String:UUID) and one
> indexSearcher for search on it,
> after that, i start one IndexWriter that writes 1,000,000 new document in
> to
> index,
> now if i do not update IndexSearcher, can i search on first 1,000 document
> without problem??
>
> thanks and sorry for bad English
> Mahdi
>

Reply via email to