[
https://issues.apache.org/jira/browse/SOLR-5795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13916185#comment-13916185
]
Steven Bower commented on SOLR-5795:
------------------------------------
The idea makes sense but this seems to me like a horrible feature to add...
Content should never be removed without explicit external interactions and this
will lead to so many "where did my content go" type problems.. Especially since
once its gone from the index debugging what went wrong is not going to be
easy.. writing a script to send a query delete periodically is really not that
complex and then it becomes the responsibility of the content owner/developer
to delete content..
I would suggest that if this does go in some sort of "audit" output be produced
(eg X docs delete automatically or a list of ids)
Also per this design both the exp and ttl fields must be required if specified
in the config else mayhem..
> Option to periodically delete docs based on an expiration field -- or ttl
> specified when indexed.
> -------------------------------------------------------------------------------------------------
>
> Key: SOLR-5795
> URL: https://issues.apache.org/jira/browse/SOLR-5795
> Project: Solr
> Issue Type: New Feature
> Reporter: Hoss Man
> Assignee: Hoss Man
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]