Terms Aggregration on Array of Strings with repeated values

As a follow on to this previous post ( Terms Aggregation on Array of String ), how can value_count be used to get the actual count of repeated values in an array? If a value_count is used with a term aggregation, then it counts all values and not just the ones that match the specific value for the bucket, so is there a way to apply a filter to account for that?

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