lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: How to return a function result instead of doclist in the Solr collapsing/grouping feature?
Date Wed, 14 Sep 2011 11:48:09 GMT
Well, what is the "average of latitude and longitude"? If you're asking
for the average of all the docs that match, or the average of all the
docs in the corpus, no, I don't think you can unless you write a custom

Something like this has been talked about, see:
but I don't think any such thing has been implemented.


On Mon, Sep 12, 2011 at 5:37 PM, Pablo Ricco <> wrote:
> 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

View raw message