Point-In-Time Queries
Point-in-time queries allow you to query older versions of content in a database. In an XCC application, you set up the options for any requests submitted to MarkLogic Server with the RequestOptions
class. One of the options you can set is the effective point-in-time option. Therefore, to set up a query to run at a different point in time, you just set that option (the setEffectivePointInTime
method in Java) on the RequestOptions
. The query will then run at the specified point in time.
There are several things you must set up on MarkLogic Server in order to perform point-in-time queries. For details, see Point-In-Time Queries in the Application Developer’s Guide.