[ https://issues.apache.org/jira/browse/SOLR-3874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461825#comment-13461825 ]
Jan Høydahl commented on SOLR-3874: ----------------------------------- Could this be implemented as a contrib/plugin instead of core functionality? Such a plugin would need two components: * An UpdateRequestProcessor looking for a "ttl" parameter on update requests, translating it to a timestamp to be indexed as a date in e.g. field ttl_d * A background job periodically issuing a delete-query towards the ttl_d field The first is already easy to make and to wire into your update handlers. I'm not sure what plugin API would fit best for the background job. Most of our plugin APIs are event driven. Should we create a generic "Job" plugin point that could be wired into solrconfig.xml as {code:xml} <job name="periodic_deleter" class="foo.Deleter"> <int name="pollinterval">60000</int> <str name="field">ttl_d</str> </job> {code} > add time to live for documents > ------------------------------ > > Key: SOLR-3874 > URL: https://issues.apache.org/jira/browse/SOLR-3874 > Project: Solr > Issue Type: New Feature > Components: update > Reporter: jiangwen wei > > allow user to set the time to live of documents, and solr automatically > delete the documents that are not live! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org