Pre-delete TTL hook

Hi,

Would it make sense to add a pre-delete hook to TTL functionality (
http://www.elasticsearch.org/guide/reference/mapping/ttl-field.html ) so
that one can optionally do something with documents (e.g. archive them,
compress them...) before they actually get deleted from the index?

Thanks,
Otis

Solr & ElasticSearch Support

--

Thanks for pointing out this future, I wasn't aware. I don't know if it
makes much sense to have a pre-delete hook. TTL says it should be dead
after the TTL, so why would you want to keep the dead documents.
If this would be uses full then only for archiving purposes, compliancy
scenario's come to mind, but I think I would rather keep the document in ES
and make sure I filter out the results at query-time. An archive would be
very hard to effectively use, without again loading it into another ES
instance.
My 2 cents

Op vrijdag 18 januari 2013 04:17:46 UTC+1 schreef Otis Gospodnetic het
volgende:

Hi,

Would it make sense to add a pre-delete hook to TTL functionality (
Elasticsearch Platform — Find real-time answers at scale | Elastic ) so
that one can optionally do something with documents (e.g. archive them,
compress them...) before they actually get deleted from the index?

Thanks,
Otis

Solr & Elasticsearch Support
http://sematext.com/

--