WordsSearch.withOptions( option as object ) as WordsSearch
Configure advanced options for a words query.
Parameters | |
---|---|
option | The configuration object for enabling special features of the words search. |
words
- An array of string options to pass through to
cts.words
,cts.wordMatch
, or one of the other word lexicon functions for fine-tuning the configuration from the other words search clauses.qualityWeight
- A number specifying the weight for the search.
forestNames
- An array of strings for restricting the query to the words in documents in the specified forests.
const jsearch = require('/MarkLogic/jsearch.sjs'); jsearch.words('title') .withOptions({qualityWeight: 2.0}) .result();