lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Scavilla <>
Subject Facet Range by Distance generating count of field - need sum of the field
Date Fri, 03 Jan 2020 13:27:38 GMT
Thank yo in advance for your help.

I need to get the sum of a pivot range field. The following query uses the
stats function to sum the *sumField* values. I'm trying to sum the same
field in a frange subquery and I don't know how.

TO *]&facet.query={!frange l=0 u=5}geodist()&facet.query={!frange l=5.001

This query produces the following results:

      "{!frange l=0 u=5}geodist()":27,
      "{!frange l=5.001 u=10}geodist()":0},


What I'm going for is line: "*{!frange l=0 u=5}geodist()":27* should be
488.0 which is the sum of the field as opposed to 27 which is the count of
the field.

Thank you!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message