{"min_doc_count"} on Unique Count aggregation


I'd like to know a simple thing:

in a visualization (e.g. Table visualization), using a Count aggregation, I can filter the results by writing {"min_doc_count":2} in the JSON input field.

Unfortunately, the same syntax will not work if the aggregation is a Unique Count.

Is there an equivalent way to accomplish such a task?

Thank you!

As far as I can tell, this is currently not supported. Underneath the hood, unique count is doing a cardinality aggregation, and I don't see an option for filtering: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.