Summary for term facet

2016-10-18 Thread prosens
How to find the stats for all the term facets where count>2, 

so looking for a 'termssummary' type like this:
Json.facet={
Total:{
type:termssummary,
field:filename,
*mincount:2*,
Facet:{
Sum:sum(size)
}}}

Is there a way to achieve this?




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Summary-for-term-facet-tp4301846.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: JSON Facet "allBuckets" behavior

2016-10-06 Thread prosens
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.


Re: SOLR3.6:Field Collapsing/Grouping throws OOM

2012-08-16 Thread prosens
"*Solr's sorting reads all the unique values into memory whether or not they
satisfy the query...*"
Is it not a overhead for any query? Any reason why it is done on entire
result set and not on the query? Is there a way to avoid this?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/SOLR3-6-Field-Collapsing-Grouping-throws-OOM-tp4001055p4001640.html
Sent from the Solr - User mailing list archive at Nabble.com.