StatsComponent is now available with stats function in the suburnt Solr python client library. More info: http://wiki.apache.org/solr/StatsComponent Example:
1 2 3 4 5 6 7 |
from sunburnt import SolrInterface si = SolrInterface(SOLR_URL) si = si.query('*') si = si.stats(fields=['price', ]) _r = si.execute() print _r.stats_counts.stats_fields |
For the source code go to my github...
Recent comments