
ValuesSearch.slice( start as integer, end as integer ) as ValuesSearch
Specifies a subsequence of values to retrieve. If unspecified, the slice defaults to the first 10 values.
// Return the first 3 values of the 'title' JSON property.
const jsearch = require('/MarkLogic/jsearch.sjs');
jsearch.values('title')
.slice(0,3)
.result()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.