op:fragment-id-col() as map:map
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.
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()