Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It would be useful if Solr supported Lucene's capability to do partial optimizes. The associated method on the IndexWriter is http://lucene.apache.org/java/2_3_2/api/core/org/apache/lucene/index/IndexWriter.html#optimize(int,%20boolean) and the variations there-in.

      1. SOLR-603.patch
        13 kB
        Grant Ingersoll
      2. SOLR-603.patch
        11 kB
        Grant Ingersoll

        Activity

        Hide
        Grant Ingersoll added a comment -

        Adds capability to do <optimize maxOptimizeSegments="5"/> which means that one can specify the maximum number of segments to leave when doing optimize. This is useful for controlling how long optimizes take. Adds test in DirectUpdateHandlerOptimizeTest.

        Also deprecates the DirectUpdateHandler.

        Show
        Grant Ingersoll added a comment - Adds capability to do <optimize maxOptimizeSegments="5"/> which means that one can specify the maximum number of segments to leave when doing optimize. This is useful for controlling how long optimizes take. Adds test in DirectUpdateHandlerOptimizeTest. Also deprecates the DirectUpdateHandler.
        Hide
        Yonik Seeley added a comment -

        nit: maxOptimizeSegments seems a bit wordy... how about numSegments or maxSegments?

        Show
        Yonik Seeley added a comment - nit: maxOptimizeSegments seems a bit wordy... how about numSegments or maxSegments?
        Hide
        Grant Ingersoll added a comment -

        Adds SolrJ support. Make the parameter a bit smaller (maxSegments instead of maxOptimizeSegments)

        Will commit in a day or two

        Show
        Grant Ingersoll added a comment - Adds SolrJ support. Make the parameter a bit smaller (maxSegments instead of maxOptimizeSegments) Will commit in a day or two
        Hide
        Grant Ingersoll added a comment -

        Committed revision 672031.

        Show
        Grant Ingersoll added a comment - Committed revision 672031.

          People

          • Assignee:
            Grant Ingersoll
            Reporter:
            Grant Ingersoll
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development