[MarkLogic Dev General] Support for direct-child queries?

Sam Mefford Sam.Mefford at marklogic.com
Fri Sep 17 10:21:22 PDT 2010


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.mefford at marklogic.com
801-706-9731


More information about the General mailing list