New in Solr 4.8: Document Expiration
From the post:
Lucene & Solr 4.8 were released last week and you can download Solr 4.8 from the Apache mirror network. Today I’d like to introduce you to a small but powerful feature I worked on for 4.8: Document Expiration.
The
DocExpirationUpdateProcessorFactory
provides two features related to the “expiration” of documents which can be used individually, or in combination:
- Periodically delete documents from the index based on an expiration field
- Computing expiration field values for documents from a “time to live” (TTL)
…
Assuming you are using a topic maps solution that presents topics as merged, this could be an interesting feature to emulate.
After all, if you are listing ticket sale outlets for concerts in a music topic map, good maintenance suggests those occurrences should go away after the concert has occurred.
Or if you need the legacy information for some purpose, at least not have it presented as currently available. Perhaps a change of its occurrence type?
Would you actually delete topics or add an “internal” occurrence so they would not participate in future presentations of merged topics?