MarkLogic 12 EA 1 Product Documentation
cts:after-query

cts:after-query(
   $timestamp as xs:unsignedLong
) as cts:after-query

Summary

Returns a query matching fragments committed after a specified timestamp.

Parameters
timestamp A commit timestamp. Database fragments committed after this timestamp are matched.

Usage Notes

Fragment commit timestamps change not only by application transactions, but also by system transactions from the reindexer or the rebalancer. The query will also match fragments whose timestamps have been changed because of reindexing and rebalancing after the given timestamp.

Example

cts:uris("",(),
  cts:after-query(xdmp:wallclock-to-timestamp(
  fn:current-dateTime() - xs:dayTimeDuration("PT1H")))
)

 => URIs of fragments committed in the last one hour
Powered by MarkLogic Server | Terms of Use | Privacy Policy