ValuesSearch.withOptions( option as object ) as ValuesSearch
Configure advanced options for a values query.
Parameters | |
---|---|
option | The configuration object for enabling special features of the values search. |
values
- An array of string options to pass through to
cts.values
,cts.valueMatch
,cts.valueRanges
, orcts.geospatialBoxes
for fine-tuning the configuration from the other values search clauses.qualityWeight
- A number specifying the weight for the search.
forestNames
- An array of strings for restricting the query to the values of documents in the specified forests.
const jsearch = require('/MarkLogic/jsearch.sjs'); jsearch.values('price') .withOptions({qualityWeight: 2.0}) .result();