You can change the searchable expression (the first arg to cts:search or the <searchable-expression> option in search:search).
for example: cts:search(//INFO-OBJ/TITLE, $query) -Danny -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sam Mefford Sent: Friday, September 17, 2010 10:21 AM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] Support for direct-child queries? I have a need to retrieve relevance-ranked documents containing text matching in <TITLE> tags that are direct children of <INFO-OBJ> tags. I'm using cts:search to get matching documents in relevance order. Using cts:element-query I can match in TITLE tags that are descendants of INFO-OBJ tags, but I see no way to limit the matching only to direct children. Thus I'm matching TITLE tags that are children of descendant TABLE tags, rather than only match the direct-child INFO-OBJ/TITLE tags I want. Any ideas? Sam Mefford [email protected] 801-706-9731 _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
