lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: update IndexSearcher
Date Thu, 16 Oct 2008 13:41:26 GMT
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 <yarimahdi@gmail.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message