We have a field called signature.full which is unanalyzed, every

document has a single string which represents one possible term.

We are displaying a page that shows a table of unique signatures,

ordered by frequency. Unfortunately, there is no good way that we

have found to see how many unique signatures there are other than

doing a facet for an absurdly high range.

"facets" : {

"signatures" : {

"terms" : {

"field" : "signature.full",

"size" : MAXINT

}

}

}

MAXINT being 2^32 because ES runs in a 32 bits machine. And MAXINT is

just a trick to get all the results so we can count it.

Is there a better way to do this?