Loading TOC...

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

Comments

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