How to access latitude and longitude with only LatLonType?

2013-08-22 Thread zhangquan913
Hello All, I am currently doing a spatial query in solr. I indexed "coordinates" (type="location" class="solr.LatLonType"), but the following query failed. http://localhost/solr/quan/select?q=*:*&stats=true&stats.field=coordinates&stats.facet=township&rows=0 It showed an error: Field type location

How can I show stats or results based on stats of a group?

2013-08-16 Thread zhangquan913
Hello All, Recently I used stats component of solr. I can do a "group by" and get stats for each group in the following solr request: http://localhost/solr/quan/select?q=*:*&stats=true&stats.field=income&rows=0&indent=true&stats.facet=township In this case, solr will group by "township" and do st