Loading TOC...

MarkLogic Server 11.0 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'. :)
     

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.