There is an index that documents are updated with time. We are looking for some way to continuesly (every several minutes) provide count of documents grouped by some condition.
Example:
2024/08/15 00:00:00, order1, new
2024/08/15 01:00:00, order2, payed
2024/08/15 00:00:00, order3, payed
one our later, the index may looks like
2024/08/15 01:15:00, order1, payed
2024/08/15 01:00:00, order2, payed
2024/08/15 01:20:00, order3, shipped
2024/08/15 01:30:00, order4, payed
We are thinking to implement it with Elasticsearch transform, however in above senario, the count of "new" orders may remain as one. We are also thinking about other alternatives, such as add a timestamp indictate when transform generated document is last updated, but not sure if it is possible.
The queries are:
Is the above understanding is correct - Transform will not delete {status : "new",count : "1"} from transform dest index in above senario?
If this is true, could you suggest if there is any work around, like add an field indicating when the transform result is generated/updated
Thank you in advance
This query may similar to Transform behavior with deleted documents