> You can change the searchable expression (the first arg to cts:search or the > <searchable-expression> option in search:search).
Yeah, i thought of those, but neither gives me relevance ranked documents, each will return relevance-ranked titles, which isn't what I'm looking for in this case. Sam Date: Fri, 17 Sep 2010 10:29:42 -0700 From: Danny Sokolsky <danny.sokol...@marklogic.com> Subject: Re: [MarkLogic Dev General] Support for direct-child queries? To: General Mark Logic Developer Discussion <general@developer.marklogic.com> Message-ID: <c9924d15b04672479b089f7d55ffc1325531d...@exchg-be.marklogic.com> Content-Type: text/plain; charset="us-ascii" 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: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] 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 sam.meff...@marklogic.com 801-706-9731 _______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general