lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] [Commented] (SOLR-3874) add time to live for documents
Date Mon, 24 Sep 2012 14:28:07 GMT


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
<job name="periodic_deleter" class="foo.Deleter">
  <int name="pollinterval">60000</int>
  <str name="field">ttl_d</str>
> add time to live for documents
> ------------------------------
>                 Key: SOLR-3874
>                 URL:
>             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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message