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 Karthik Ramachandran <mr...@gmail.com> on 2016/10/03 15:31:17 UTC

Re: JSON Facet "allBuckets" behavior

So if i cannot use allBuckets since its not filtering, how can I achieve
this?

On Fri, Sep 30, 2016 at 7:19 PM, Yonik Seeley <ys...@gmail.com> wrote:

> On Tue, Sep 27, 2016 at 12:20 PM, Karthik Ramachandran
> <kr...@commvault.com> wrote:
> > While performing json faceting with "allBuckets" and "mincount", I not
> sure if I am expecting a wrong result or there is bug?
> >
> > By "allBucket" definition the response, representing the union of all of
> the buckets.
> [...]
> > I was wonder, why the result is not this, since I have "mincount:2"
>
> allBuckets means all of the buckets before limiting or filtering (i.e.
> mincount filtering).
>
> -Yonik
>

Re: JSON Facet "allBuckets" behavior

Posted by prosens <pr...@gmail.com>.
Yonik,
Here is the requirement:
Get sum of size field for all the documents which has a duplicate in the
index. Duplicate is decided based on a string field. So, we are looking for
something like this.
{
	"Statistics": {
		"type": "terms",
		"field": "filename",
		"mincount": 2,
		"numBuckets": true,		
		*"sumBuckets": true*	
	}
}

Is their an alternate way to achieve this?



--
View this message in context: http://lucene.472066.n3.nabble.com/JSON-Facet-allBuckets-behavior-tp4298289p4299980.html
Sent from the Solr - User mailing list archive at Nabble.com.