The search:results output from search:search returns the URI of the documents that match the search. You can use that to get the document and/or any or all parts of the document, including the meta elements.
-Danny -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Shah, Mehul (LNG-NPV) Sent: Friday, October 08, 2010 7:16 AM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] result with additional fields How do I have search:search return me not only matched nodes but certain additional elements of documents. For example some metadata of document I always want to return <meta> for a search that matched node1 only (say I searched "n1") . <doc> <meta>this has some important doc metadata elements</meta> <node1> Some text for n1</node1> <node2> Some text for n2</node2> ... </doc> Thank you, Mehul. _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
