jsearch.fieldLexicon( names as xs.string ) as LexiconDefinition
Identifies the word lexicon for a field
as input for the jsearch.words
method. The word lexicon
must be enabled for the field.
Parameters | |
---|---|
names | The field name. Can be multiple strings for the union of multiple field lexicons. |
// Match words in the field named "myField" const jsearch = require('/MarkLogic/jsearch.sjs'); jsearch.words(jsearch.fieldLexicon('myField')) .match('c*') .result();
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.