Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-617

Allow configurable deletion policy

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Component/s: search, update
    • Labels:
      None

      Description

      Lucene API provides means to configure deletion policy. Solr should be able to expose it through configuration in solrconfig.xml. Moreover the new replication (SOLR-561) strategy is going to rely on this .

      I propose the configuration go into the <mainIndex> section

      sample configuration

      solrconfig.xml
      <mainIndex>
          <!-- configure deletion policy here-->
          <deletionPolicy>
             <!-- Store only the commits with optimize.Non optimized commits will get deleted by lucene when 
                     the last IndexWriter/IndexReader using this commit point is closed  -->
              <keepOptimizedOnly>true</keepOptimizedOnly>
               <!--Maximum no: of commit points stored . Older ones will be cleaned when they go out of scope-->
              <maxCommitsToKeep></maxCommitsToKeep>
               <!-- max age of a stored commit-->
              <maxCommitAge></maxCommitAge>    
          </deletionPolicy>
          
        </mainIndex>
      

        Attachments

        1. 617.patch
          19 kB
          Akshay K. Ukey
        2. solr-617.patch
          65 kB
          Shalin Shekhar Mangar
        3. solr-617.patch
          54 kB
          Akshay K. Ukey
        4. solr-617.patch
          55 kB
          Akshay K. Ukey
        5. solr-617.patch
          18 kB
          Akshay K. Ukey
        6. solr-617.patch
          19 kB
          Akshay K. Ukey

          Issue Links

            Activity

              People

              • Assignee:
                shalinmangar Shalin Shekhar Mangar
                Reporter:
                noble.paul Noble Paul
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: