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

Option to periodically delete docs based on an expiration field -- or ttl specified when indexed.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments


    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8, 6.0
    • Component/s: None
    • Labels:


      A question I get periodically from people is how to automatically remove documents from a collection at a certain time (or after a certain amount of time).

      Excluding from search results using a filter query on a date field is trivial, but you still have to periodically send a deleteByQuery to clean up those older "expired" documents. And in the case where you want all documents to auto-expire some fixed amount of time when they were indexed, you still have to setup a simple UpdateProcessorto set that expiration date. So i've been thinking it would be nice if there was a simple way to configure solr to do it all for you.


        1. SOLR-5795.patch
          49 kB
          Chris M. Hostetter
        2. SOLR-5795.patch
          47 kB
          Chris M. Hostetter
        3. SOLR-5795.patch
          44 kB
          Chris M. Hostetter
        4. SOLR-5795.patch
          34 kB
          Chris M. Hostetter
        5. SOLR-5795.patch
          24 kB
          Chris M. Hostetter
        6. SOLR-5795.patch
          11 kB
          Chris M. Hostetter

        Issue Links



            • Assignee:
              hossman Chris M. Hostetter
              hossman Chris M. Hostetter


              • Created:

                Issue deployment