Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
TuplesSearch.result( $type as string ) as object
Executes the tuples search definition and returns results.
Parameters | |
---|---|
$type | Specifies 'value' (the default) to return the tuples as a value (an array unless reducing) or 'iterator' to return a streaming iterator over the tuples. |
const jsearch = require('/MarkLogic/jsearch.sjs'); jsearch.tuples([ cts.jsonPropertyReference('city'), cts.jsonPropertyReference('event')]) .where(cts.wordQuery('hazard')) .orderBy('frequency', 'descending') .slice(0, 100) .map({frequency: 'fragment'}) .result();
Comments