This query uses a filter on an element in a fragment.  The syntax I've been
using in these cases surrounds the cts:and-query with
cts:document-query(cts:uris(

 

let $cq := 
    cts:document-query(cts:uris('',(),cts:and-query((
      cts:collection-query('content'),
      cts:document-fragment-query(
        cts:and-query((
          cts:element-value-query(xs:QName('database'),
'NORTHWIND.NORTHWIND.DBO')
        )) 
      )
    )) ))



for $x in cts:search(doc(), $cq, 'unfiltered')

 

The results from this cts:search will occasionally return multiple instances
of a document.  I'm wondering if my syntax for constraining queries using
fragments is correct, or if there is an efficient method to get rid of the
duplicates.

 

Thanks,

gary

_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to