How to return a function result instead of doclist in the Solr collapsing/grouping feature?

2011-09-12 Thread Pablo Ricco
I have the following solr fields in schema.xml: - id (string) - name (string) - category(string) - latitude (double) - longitude(double) Is it possible to make a query that groups by category and returns the average of latitude and longitude instead of the doclist? Thanks, Pablo

Get field value in custom searchcomponent (solr 3.3)

2011-09-13 Thread Pablo Ricco
What is the best way to get a float field value from docID? I tried the following code but when it runs throws an exception For input string: "` ??eI" at line float lat = Float.parseFloat(tlat); schemal.xml: ... ... component.java: @Override public void process(ResponseBuilder rb) thro