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

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.