Loading TOC...

MarkLogic Server 11.0 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();
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.