[Transforms] Update transforms at scale doc to add date rounding #108674
Labels
>docs
General docs changes
:ml/Transform
Transform
:ml
Machine learning
Team:Docs
Meta label for docs team
Team:ML
Meta label for the ML team
Update Transform docs https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-scale.html#limit-source-query
From
Use an absolute time value as a date range filter in your source query (for example, greater than 2020-01-01T00:00:00) to limit which historical indices are accessed. If you use a relative time value (for example, now-30d) then this date range is re-evaluated at the point of each checkpoint execution.
To
To limit which historical indices are accessed, exclude certain tiers (for example `"must_not": { "terms": { "_tier": [ "data_frozen", "data_cold" ] } }` and/or use an absolute time value as a date range filter in your source query (for example, greater than 2024-01-01T00:00:00). If you use a relative time value (for example, gte now-30d/d) then ensure date rounding is applied to take advantage of query caching and ensure that the relative time is much larger than the largest of `frequency` or `time.sync.delay` or the date histogram bucket, otherwise data may be missed. Do not use date filters which are less than a date value as this conflicts with logic applied at each checkpoint execution and data may be missed.
The text was updated successfully, but these errors were encountered: