Hi Anna, If you set up query options<http://docs.marklogic.com/guide/java/query-options#chapter> that include transform-results<http://docs.marklogic.com/guide/rest-dev/appendixb#id_29258>, then you can build your StringQueryDefintion<http://docs.marklogic.com/guide/java/query-options#id_50595> to refer to those options.
Dave. -- Dave Cassel Developer Community Manager MarkLogic Corporation<http://www.marklogic.com/> Cell: +1-484-798-8720 From: <Byszkin>, <Anna>, "BioMed Central Ltd." <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Monday, October 6, 2014 at 12:41 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Cc: "Gerogiokas, Eugene, Springer UK" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] how to include document content in search results (Java client) Hello, I'm trying to return whole documents matching the query (as opposed to just returning matching snippets) using Java client. I was unable to do so, but read that there is a property called "transform-results", which if you set to "raw" will return whole documents. Is there a way to do this using the Java client, or the equivalent? I want to avoid having to make multiple read requests to the DB using a document manager. Thanks, Anna. _______________________________________________ General mailing list [email protected]<mailto:[email protected]> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
