You can use cts:highlight to highlight the results (in a for loop, for example) from a cts:search. For some details, see the section "Using cts:highlight to Create Snippets" in the "Highlighting Search Term Matches" chapter of the Search Developer's Guide (page 93).
http://developer.marklogic.com/pubs/4.1/books/search-dev-guide.pdf -Danny From: [email protected] [mailto:[email protected]] On Behalf Of Shah, Mehul (LNG-NPV) Sent: Friday, October 15, 2010 9:41 AM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] snippets with cts:search How do I produce snippets using cts:search, similar to search:search ? Thanks, Mehul.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
