Loading TOC...

MarkLogic 9 Product Documentation
view.column

view.column(
   name as 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

const view = require('/MarkLogic/views');

  view.column('title', cts.elementReference(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.