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

Allow configurable deletion policy

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.4
    • search, update
    • 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

              shalin Shalin Shekhar Mangar
              noble.paul Noble Paul
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: