MarkLogic 10 Product Documentation
jsearch.fieldLexicon

jsearch.fieldLexicon(
   names as xs.string
) as LexiconDefinition

Summary

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.

See Also

Example


// Match words in the field named "myField"
const jsearch = require('/MarkLogic/jsearch.sjs');
jsearch.words(jsearch.fieldLexicon('myField'))
  .match('c*')
  .result();
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy