view:column( $name as xs:string, $range-index as cts:reference ) as element(view:column)
This function constructs a new column specification.
Parameters | |
---|---|
name | The name of the column specification. |
range-index | The range index for the column. |
xquery version "1.0-ml"; import module namespace view = "http://marklogic.com/xdmp/view" at "/MarkLogic/views.xqy"; view:column("title", cts:element-reference(xs:QName("TITLE"))) (: Constructs a column, named 'title', over an element range index, named 'TITLE'. :)