Count of unique values in a field


(Mike) #1

Is there a way to get a count of the # of unique terms for a field? I know
I can use a terms facet with a large size to get a list of all the unique
values for a field (and their individual counts), but what if I just want
the # of unique terms instead of the terms themselves?

--


(Ivan Brusic) #2

The termlist plugin will get you close, but it returns all the values, not
just the count:

It shouldn't be too hard to modify the plugin to return only the counts.

--
Ivan

On Wed, Oct 24, 2012 at 3:17 PM, Mike mnilsson2323@gmail.com wrote:

Is there a way to get a count of the # of unique terms for a field? I
know I can use a terms facet with a large size to get a list of all the
unique values for a field (and their individual counts), but what if I just
want the # of unique terms instead of the terms themselves?

--

--


(Mike) #3

Thanks Ivan

--


(system) #4