Hi
We want to (mis)use facet search to get the number of (unique) field
values appearing in a document resultset.
I thought facet search perfect for this, because it already gives me
all the (unique) field values.
But for us to be used for this special problem, we don't want all the
values listed in response as there might be over 10000 and we don't need
the values at all, just the count of how many!
I looked at
http://wiki.apache.org/solr/SimpleFacetParameters
and hoped to find a parameter like
facet.sizeOnly = true
(or facet.showSize=true , combined with facet.limit=1 or other small value)
Would you accept a patch with such a feature ?
It should probably be relatively easy, though not sure if fits into the
concept of facets..
I looked at the code, maybe add an extra Value to returned NamedList of
getFacetCounts() in SimpleFacets ?!
ps: Other user having same request AFAIU :
http://www.nabble.com/showing--range-facet-example-%3D-by-Range-%28-1-to-1000-%29-t3660704.html#a10229069
thanks,
Laurent Hoss