The Open API specification for Synapse is now available for download!

Download Open API Spec

CardinalityAggregation

org.sagebionetworks.repo.model.search.dsl.CardinalityAggregation

A cardinality metric aggregation — an approximate distinct-value count of a column.

Field Type Description
missing OBJECT Optional. Value substituted for documents missing field.
field STRING Required. The column whose distinct values are counted.
precision_threshold INTEGER Optional. Count below which the result is near-exact, trading memory for accuracy. Capped server-side.
execution_hint STRING Optional. Internal execution strategy hint.