cts.estimate( $query as cts.query?, [$options as String], [$quality-weight as Number?], [$forest-ids as String], [$maximum as Number?] ) as Number
Returns the number of fragments selected by a search. This can be used as a fast estimate of the number results.
Options to this search. The default is ().
|$quality-weight||A document quality weight to use when computing scores. The default is 1.0.|
A sequence of IDs of forests to which the search will be constrained.
An empty sequence means to search all forests in the database.
The default is (). In the XQuery version, you can use
|$maximum||The maximum value to return. Stop selecting fragments if this number is reached.|
cts.estimate(cts.wordQuery("unsually")) => 10476