
jsearch.jsonPropertyLexicon( names as xs.string ) as LexiconDefinition
Identifies the word lexicon for a JSON property
as input for the jsearch.words method. The word lexicon
must be enabled for the JSON property.
| Parameters | |
|---|---|
| names | The property name. Can be multiple strings for the union of multiple JSON property lexicons. |
// 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.