Cardinality of 1 vs. 0

I'm curious, if cardinality returns the count of distinct values, what does 0 mean? If there are two distinct values, you get 2. If they're all the same, you get 1. My best guess is that a zero means there was nothing to compare it to, e.g., if you did cardinality on a single row.

Hi Jesse.
It would likely mean you matched no docs or the docs didn't have any values for the field in question

2 Likes

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