You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by cricdigs <cr...@gmail.com> on 2007/11/01 18:02:52 UTC
Re: Getting only size of getFacetCounts , to simulate count(group
by( a field) ) using facets
Hi,
Not sure what the resolution on this has been. But, I also have this need
and I am using 1.2 release of solr. If there is a workaround so I can get
this functionality, please advise. It will be very helpful.
Thanks.
Laurent Hoss wrote:
>
> 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
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Getting-only-size-of-getFacetCounts-%2C-to-simulate-count%28group-by%28-a-field%29-%29-using-facets-tf4482430.html#a13532933
Sent from the Solr - User mailing list archive at Nabble.com.