TuplesSearch.withOptions( option as object ) as TuplesSearch
Configure advanced options for a tuples query.
Parameters | |
---|---|
option | A configuration object for enabling special features of the tuples query. See the Usage Notes for details. |
tuples
- An array of string options to pass through to
cts.valueTuples
for fine-tuning the configuration from the other tuples search clauses.qualityWeight
- A number specifying the weight for the search.
forestNames
- an array of strings for restricting the query to tuples of documents in the specified forests.
const jsearch = require('/MarkLogic/jsearch.sjs'); jsearch.tuples([ cts.jsonPropertyReference('format'), cts.jsonPropertyReference('price')]) .withOptions({tuples: ['proximity=5']}) .result()