Removing TTL during document update

I am trying to remove the TTL setting when doing a document update
(doc_as_upsert) via the java api. I do the following:

UpdateRequestBuilder b = new UpdateRequestBuilder(client);



UpdateRequest request = b.request();



If I set a value here instead of null, the TTL is successfully updated.
However passing null doesn't seem to remove the TTL. Is there another way
to do this? The comments for the ttl(Long) method seem to indicate passing
null should reset the TTL (I am on 0.90.11)

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
To view this discussion on the web visit
For more options, visit