cts.exists( $query as cts.query?, [$options as String], [$quality-weight as Number?], [$forest-ids as String] ) as Boolean
Returns true if any fragment is selected by the search, false if no fragments are selected. This can be used as a fast existence check.
Options to this search. The default is ().
|$quality-weight||A document quality weight to use when computing scores. The default is 1.0.|
|$forest-ids||A sequence of IDs of forests to which the search will be constrained. An null value means to search all forests in the database. The default is null.|
cts.exists(cts.wordQuery("something here")) => true