
jsearch.words( index as LexiconDefinition ) as WordsSearch
Creates a WordsSearch object to define and execute a search for a list of indexed words.
jsearch.databaseLexicon, jsearch.elementLexicon,
jsearch.elementAttributeLexicon,
jsearch.fieldLexicon,
jsearch.jsonPropertyLexicon.
// Match words in the JSON property named "title".
const jsearch = require('/MarkLogic/jsearch.sjs');
jsearch.words(jsearch.jsonPropertyLexicon('title'))
.match('c*')
.result();
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.