MarkLogic 9 Product Documentation
jsearch.jsonPropertyLexicon

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

Summary

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.

Usage Notes

To enable a word lexicon on a JSON property, use the element word lexicon interfaces in the Admin Interface or the Admin API.

See Also

Example


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