MarkLogic 10 Product Documentation
op:fragment-id-col

op:fragment-id-col() as map:map

Summary

Specifies a name for adding a fragment id column to the row set identifying the source documents for the rows from a view, lexicons or triples. The only use for the fragment id is joining other rows from the same document, the document uri, or the document content. The fragment id is only useful during execution of the query and not after.

Example

xquery version "1.0-ml";

import module namespace op="http://marklogic.com/optic"
     at "/MarkLogic/optic.xqy";

op:from-lexicons(
   map:entry("EmployeeID", cts:element-reference(xs:QName("EmployeeID"))),
   "myview",
   op:fragment-id-col("Document Fragment"))
=> op:result()
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy