op:sample-by( [$options as map:map?] ) as map:map
This function samples rows from a view or from a pattern match on the triple index.
xquery version "1.0-ml"; import module namespace op="http://marklogic.com/optic" at "/MarkLogic/optic.xqy"; op:from-view("opticUnitTest", "musician") => op:sample-by() => op:result()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.