Bob: 1. Yes, it is capped at 5.
2. It returns just the URIs; if you want to display titles, you will need to write a little display logic that uses fn:doc() with an XPath expression to get the title for each one. 3. It uses cts:similar-query() under the covers, which is indeed the 16 top scored terms. I am not the right person to address details of that algorithm, so I'll leave that as an open question to others on the list. --Colleen ________________________________________ From: [email protected] [[email protected]] On Behalf Of Runstein, Robert E. (Contr) (IS) [[email protected]] Sent: Tuesday, September 15, 2009 8:20 AM To: [email protected] Subject: [MarkLogic Dev General] questions about search:similar 1. Is there a limit on how many similar documents are returned? 2. Can I get more than just the URI back? Ideally we would like to display the similar document titles as hyperlinks to the URIs. 3. Is there any more detail available about the algorithm (other than using the 16 top scored terms in the doc)? Thanks. Bob _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
