You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by IK...@axsone.com on 2010/08/10 17:28:56 UTC

Index merge question

Hello,

Is there any point during a merge operation where the index cannot be
searched or is unstable? We want to create a bunch of smaller indexes in
parallel and then merge them into a single index that may have searches
running against it.

 

Thanks,

Ian Koelliker


RE: Index merge question

Posted by IK...@axsone.com.
Would it matter if an IndexReader was opened while an index merge is in
progress?

Thanks

-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com] 
Sent: Tuesday, August 10, 2010 12:03 PM
To: java-user@lucene.apache.org
Subject: Re: Index merge question

When you open an IndexReader, Lucene effectively takes
a "snapshot" of the index and searches it until you reopen
your reader. So the timing of when the merged index gets
used is up to you, so you should be fine.

Best
Erick

On Tue, Aug 10, 2010 at 11:28 AM, <IK...@axsone.com> wrote:

> Hello,
>
> Is there any point during a merge operation where the index cannot be
> searched or is unstable? We want to create a bunch of smaller indexes
in
> parallel and then merge them into a single index that may have
searches
> running against it.
>
>
>
> Thanks,
>
> Ian Koelliker
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Index merge question

Posted by Erick Erickson <er...@gmail.com>.
When you open an IndexReader, Lucene effectively takes
a "snapshot" of the index and searches it until you reopen
your reader. So the timing of when the merged index gets
used is up to you, so you should be fine.

Best
Erick

On Tue, Aug 10, 2010 at 11:28 AM, <IK...@axsone.com> wrote:

> Hello,
>
> Is there any point during a merge operation where the index cannot be
> searched or is unstable? We want to create a bunch of smaller indexes in
> parallel and then merge them into a single index that may have searches
> running against it.
>
>
>
> Thanks,
>
> Ian Koelliker
>
>