MarkLogic 9 Product Documentation
view:column

view:column(
   $name as xs:string,
   $range-index as cts:reference
) as element(view:column)

Summary

This function constructs a new column specification.

Parameters
name The name of the column specification.
range-index The range index for the column.

Example

  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'. :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy