Hi Shannon, The return-similar option uses cts:similar-query (http://developer.marklogic.com/pubs/4.1/apidocs/cts-query.html#cts:similar-query) under the covers; it accepts a node rather than a URI.
--Colleen ________________________________________ From: [email protected] [[email protected]] On Behalf Of Shannon [[email protected]] Sent: Wednesday, July 22, 2009 11:07 AM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] <return-similar> ("like this") Hi, Just observed that search:search() accepts an optional <return- similar> element in the options node. It sounds to me, this could be used as a "More Documents Like This" feature--separate from results, is there an API for passing a URI and getting back a list of URIs similar to that document? Thanks, -- Shannon Scott Shiflett, XML Programmer ROTUNDA, The University of Virginia Press PO Box 801079, Charlottesville, VA 22904-4318 USA Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903 Email: [email protected] Tel: +1 434 924 4495 Web: http://rotunda.upress.virginia.edu/ _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
