You can build a custom constraint<http://docs.marklogic.com/guide/search-dev/search-api#id_49750> to do query term expansion. Add that to your REST config and you can use StructuredQueryBuilder<http://docs.marklogic.com/javadoc/client/index.html?com/marklogic/client/query/StructuredQueryBuilder.html> and call customConstraint()<http://docs.marklogic.com/javadoc/client/com/marklogic/client/query/StructuredQueryBuilder.html#customConstraint(java.lang.String,%20java.lang.String...)> to build the appropriate structured query.
-- Dave Cassel Developer Community Manager MarkLogic Corporation<http://www.marklogic.com/> From: <Archer>, Stephen X <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Friday, February 20, 2015 at 5:33 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] Using the Thesaurus from Java Client API Hi All Is there any way to utilise the ML thesaurus features to expand a search executed using the Java Client API? I’m creating a StructuredQueryDefinition and executing it using QueryManager.search(...), but can’t see any way to expand the search in the same way as the thsr:expand function provides in XQuery. Many Thanks Steve This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
