Can someone point me to the right direction to specify the elasticsearch index ttl time for documents, using the elasticsearch-py client ?
I tried the official documentation but that does not looks very helpful.
Can someone point me to the right direction to specify the elasticsearch index ttl time for documents, using the elasticsearch-py client ?
I tried the official documentation but that does not looks very helpful.
Did you try giving ttl value as a parameter to this create function ?
The lib you are using must use the API under the cover:
https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-ttl-field.html (Note: this looks ** deprecated**, consider using index-per-timeframe
as said by ES docs)
It is called ttl
, so chances are you will find something by searching for ttl
in the github repo of the lib: https://github.com/elastic/elasticsearch-py/search?utf8=%E2%9C%93&q=ttl
This worked well because ttl
is a specific string which has little conflicts with other strings...