Judie, As of version 4.1 of MarkLogic Server, cts:highlight allows you to use xdmp:set with $cts:action to stop the processing after some time. You might count the matches via xdmp:set, then stop after you have a few.
Alternatively, you can transform the document to be smaller or simpler, which may then speed execution of cts:highlight. Damon From: [email protected] [mailto:[email protected]] On Behalf Of judie pearline Sent: Thursday, February 17, 2011 12:05 AM To: Mark Logic Subject: [MarkLogic Dev General] cts:highlight for large document Hi all, In our applicatiion the size of the document is very large, hence the cts:highlight query takes almost 20 seconds to execute. Is there any way to reduce the execution time? Regards, Judie
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
