mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 18:38:41 +00:00
Added back deprecation notices for _ttl and _timestamp
This commit is contained in:
parent
8eb59f302d
commit
6aa1a4930e
@ -131,6 +131,8 @@ operation based on the `_parent` / `_routing` mapping.
|
||||
[[bulk-timestamp]]
|
||||
=== Timestamp
|
||||
|
||||
deprecated[2.0.0,The `_timestamp` field is deprecated. Instead, use a normal <<date,`date`>> field and set its value explicitly]
|
||||
|
||||
Each bulk item can include the timestamp value using the
|
||||
`_timestamp`/`timestamp` field. It automatically follows the behavior of
|
||||
the index operation based on the `_timestamp` mapping.
|
||||
@ -139,6 +141,8 @@ the index operation based on the `_timestamp` mapping.
|
||||
[[bulk-ttl]]
|
||||
=== TTL
|
||||
|
||||
deprecated[2.0.0,The current `_ttl` implementation is deprecated and will be replaced with a different implementation in a future version]
|
||||
|
||||
Each bulk item can include the ttl value using the `_ttl`/`ttl` field.
|
||||
It automatically follows the behavior of the index operation based on
|
||||
the `_ttl` mapping.
|
||||
|
@ -258,6 +258,8 @@ specified using the `routing` parameter.
|
||||
[[index-timestamp]]
|
||||
=== Timestamp
|
||||
|
||||
deprecated[2.0.0,The `_timestamp` field is deprecated. Instead, use a normal <<date,`date`>> field and set its value explicitly]
|
||||
|
||||
A document can be indexed with a `timestamp` associated with it. The
|
||||
`timestamp` value of a document can be set using the `timestamp`
|
||||
parameter. For example:
|
||||
@ -280,6 +282,8 @@ page>>.
|
||||
[[index-ttl]]
|
||||
=== TTL
|
||||
|
||||
deprecated[2.0.0,The current `_ttl` implementation is deprecated and will be replaced with a different implementation in a future version]
|
||||
|
||||
|
||||
A document can be indexed with a `ttl` (time to live) associated with
|
||||
it. Expired documents will be expunged automatically. The expiration
|
||||
|
@ -1,6 +1,8 @@
|
||||
[[mapping-timestamp-field]]
|
||||
=== `_timestamp` field
|
||||
|
||||
deprecated[2.0.0,The `_timestamp` field is deprecated. Instead, use a normal <<date,`date`>> field and set its value explicitly]
|
||||
|
||||
The `_timestamp` field, when enabled, allows a timestamp to be indexed and
|
||||
stored with a document. The timestamp may be specified manually, generated
|
||||
automatically, or set to a default value:
|
||||
|
@ -1,6 +1,8 @@
|
||||
[[mapping-ttl-field]]
|
||||
=== `_ttl` field
|
||||
|
||||
deprecated[2.0.0,The current `_ttl` implementation is deprecated and will be replaced with a different implementation in a future version]
|
||||
|
||||
Some types of documents, such as session data or special offers, come with an
|
||||
expiration date. The `_ttl` field allows you to specify the minimum time a
|
||||
document should live, after which time the document is deleted automatically.
|
||||
|
Loading…
x
Reference in New Issue
Block a user