Loading TOC...

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
$namesThe 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();
   

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy