Details

    • Type: New Feature
    • Status: Resolved
    • Priority: 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
        gsingers 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
        gsingers 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
        yseeley@gmail.com Yonik Seeley added a comment -

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

        Show
        yseeley@gmail.com Yonik Seeley added a comment - nit: maxOptimizeSegments seems a bit wordy... how about numSegments or maxSegments?
        Hide
        gsingers 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
        gsingers 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
        gsingers Grant Ingersoll added a comment -

        Committed revision 672031.

        Show
        gsingers Grant Ingersoll added a comment - Committed revision 672031.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development