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) #122

Closed
ericthelast opened this issue Sep 29, 2014 · 4 comments
Closed

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

ericthelast opened this issue Sep 29, 2014 · 4 comments

Comments

@ericthelast
Copy link

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
Owner

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

@xxidigital
Copy link

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
Owner

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.

@taterbase
Copy link
Owner

This issue has been moved to mongoosastic#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants