karmi/tire — Issue #148: Possible to set _ttl option in mappings?
Author: ryw
Created: 2011-11-15 05:15:15+00:00
State: open

I'm new to elasticsearch + tire. I'd like to use [_ttl setting](https://github.com/elasticsearch/elasticsearch/issues/1316).

My index creation code:

```ruby
Tire.index 'site' do
delete

create mappings: {
document: {
properties: {
Collections: { type: 'string', index: 'not_analyzed' },
Categories: { type: 'string', index: 'not_analyzed' },
Sizes: { type: 'string', index: 'not_analyzed' },
Segments: { type: 'string', index: 'not_analyzed' }
}
}
}
end
```