This chnage will expose a way to ask a lucene index to sample the percentage of different value
present in the index. I.e., it scans a given sample size of the indexed value by skipping at a
given frequency. The return percentage is computed as uniqueSampledValues / sampleSize.

Avoid using a hashset for computing unique index values but rather use sampling