Loading TOC...


   $enabled as xs:boolean
) as empty-sequence()


Enables or disables tracing of this query. When query tracing is enabled, "info" level messages are logged detailing the search optimizations performed.

$enabled Specify true to enable query tracing, false to disenable query tracing.

Usage Notes

Search optimizations are performed in three phases:

the path analysis phase
In this phase a path expression is analyzed to determine whether it can be executed in whole or in part through an optimized search. Each individual component of the path is analyzed to see if it is searchable. The searchablity of each path component is logged.
the search constraint gathering phase
In this phase, search constraints are gathered from the path expression components. The number of constraints contributed by each path component is logged.
the search execution phase
In this phase, a search is performed using the gathered constraints. The actual number of fragments selected for filtering is logged.


=> ()

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.


The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.
  • Is it possible to use this function or any other to monitor rest-api extension output in ML7? More on what exactly I mean can be found here: http://stackoverflow.com/questions/33265554/how-to-monitor-database-backups-in-custom-log-when-using-rest-api-extension-in-m Thank you