>From my tests, it’s ms:
IndexRequest indexRequest = new IndexRequest("ttl", "doc", "1")
.source(jsonBuilder().startObject().field("foo", "bar").endObject())
.ttl(1000L);
Means 1s delay
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr
<https://twitter.com/elasticsearchfr> | @scrutmydocs
<https://twitter.com/scrutmydocs>
> Le 8 déc. 2014 à 19:27, Kevin Burton <[email protected]> a écrit :
>
> Ha. Generally speaking, yes, I would, but I don't have an answer whether
> it's in seconds or milliseconds :)
>
> If I get an answer I'll try it and if it works I'll update the docs.
>
> Kevin
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/44c29924-a243-4071-b792-cbba6e4cf95d%40googlegroups.com
>
> <https://groups.google.com/d/msgid/elasticsearch/44c29924-a243-4071-b792-cbba6e4cf95d%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/21A0B409-2A07-42B6-ABD7-DE62758C730D%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.