Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support options such as _ttl (time to live) #10

Closed
taterbase opened this issue Oct 24, 2014 · 4 comments
Closed

Support options such as _ttl (time to live) #10

taterbase opened this issue Oct 24, 2014 · 4 comments

Comments

@taterbase
Copy link
Contributor

taterbase#122 (comment)

Would it be possible to add support for defining additional mapping options (specifically _ttl)? See http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-ttl-field.html for reference

@taterbase
Copy link
Contributor Author

taterbase#122 (comment)

Yes, these are already supported. You would just define it as es_ttl. See https://github.com/mongoosatic/mongoosastic#per-field-options

@taterbase
Copy link
Contributor Author

taterbase#122 (comment)

I don't know if I should reopen that issue or not, but I can't figure how to use this "es_ttl" inside a mongoose schema to enable it in the real of elasticsearch ? May I ask you a simple example of a mapping using ttl ?

Thanks for the support, this is a great plugin

@taterbase
Copy link
Contributor Author

taterbase#122 (comment)

Oh I didn't realize this was a root level setting. I'll reopen it. To my knowledge this is not currently possible with mongoosastic.

@isayme
Copy link
Contributor

isayme commented Jan 5, 2017

closed since the feature is deprecated in 2.0.0-beta2.

refer: https://www.elastic.co/guide/en/elasticsearch/reference/2.0/mapping-ttl-field.html

@isayme isayme closed this as completed Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants