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