FAQ
Hello,

We are currently using lucene v2.1 and we are planning to upgrade to lucene v2.4.
Can we change the merge factor for an existing index and then add more documents to that index? Is there some kind of upgrade path like using optimize to move an existing index to a different merge factor?

Thanks,

Tom

Search Discussions

  • Mark Miller at Oct 28, 2008 at 8:39 pm
    Just change it. Merges will start obeying the new merge factor
    seamlessly.

    - Mark

    On Oct 27, 2008, at 1:07 PM, Tom Saulpaugh wrote:

    Hello,

    We are currently using lucene v2.1 and we are planning to upgrade to
    lucene v2.4.
    Can we change the merge factor for an existing index and then add
    more documents to that index? Is there some kind of upgrade path
    like using optimize to move an existing index to a different merge
    factor?

    Thanks,

    Tom
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org
  • Tom Saulpaugh at Oct 28, 2008 at 11:12 pm
    Also, Can I change maxMergeDocs?
    Thanks.
    Tom

    -----Original Message-----
    From: Mark Miller
    Sent: Tuesday, October 28, 2008 1:39 PM
    To: java-user@lucene.apache.org
    Subject: Re: Change the merge factor for an existing index?

    Just change it. Merges will start obeying the new merge factor
    seamlessly.

    - Mark

    On Oct 27, 2008, at 1:07 PM, Tom Saulpaugh wrote:

    Hello,

    We are currently using lucene v2.1 and we are planning to upgrade to
    lucene v2.4.
    Can we change the merge factor for an existing index and then add
    more documents to that index? Is there some kind of upgrade path
    like using optimize to move an existing index to a different merge
    factor?

    Thanks,

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


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org
  • Michael McCandless at Oct 29, 2008 at 12:20 pm
    It's fine to change any of IW's parameters on an existing index.
    Nothing will break.

    However, in general, such changes won't be retroactive: they only
    apply to future actions the IW will take.

    So, changing maxMergeDocs will only prevent future merges from
    producing segments larger than that size.

    But mergeFactor is an exception to this rule: if you suddenly create
    an IW with a lower mergeFactor, the MergePolicy will likely look at
    your current index and choose to do a bunch of merges (if your index
    has alot of segments) which ConcurrentMergeScheduler will then run,
    concurrently.

    Mike

    Tom Saulpaugh wrote:
    Also, Can I change maxMergeDocs?
    Thanks.
    Tom

    -----Original Message-----
    From: Mark Miller
    Sent: Tuesday, October 28, 2008 1:39 PM
    To: java-user@lucene.apache.org
    Subject: Re: Change the merge factor for an existing index?

    Just change it. Merges will start obeying the new merge factor
    seamlessly.

    - Mark

    On Oct 27, 2008, at 1:07 PM, Tom Saulpaugh wrote:

    Hello,

    We are currently using lucene v2.1 and we are planning to upgrade to
    lucene v2.4.
    Can we change the merge factor for an existing index and then add
    more documents to that index? Is there some kind of upgrade path
    like using optimize to move an existing index to a different merge
    factor?

    Thanks,

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


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

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedOct 27, '08 at 5:09p
activeOct 29, '08 at 12:20p
posts4
users3
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase