MarkLogic Server 11.0 Product Documentation
op:fragment-id-col

op:fragment-id-col(
   $name as xs:string
) 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.

Parameters
$name The name of the fragment ID column.

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