lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: how to efficiently get sum of an int field
Date Thu, 05 Nov 2015 18:18:26 GMT
: &stats=true&stats.field=my_field_name&rows=0
	...
: I noticed the 'stats' give out more information than I needed (just sum), I
: suspect the min/max/mean etc are the ones that caused the time. 
: 
: Is there a simple way I can just get the sum without other things, and run
: it on a faster and less stressed to the solr server manner?

Yes...

  stats.field={!sum=true}my_field_name

https://cwiki.apache.org/confluence/display/solr/The+Stats+Component#TheStatsComponent-StatisticsSupported


-Hoss
http://www.lucidworks.com/

Mime
View raw message