lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafał Kuć <>
Subject Re: Using a sum of fields in a filter query
Date Tue, 04 Sep 2012 07:25:44 GMT

Try something like

fq={!frange l=0 u=100}sum(fielda, fieldb, fieldc)

 Rafał Kuć
 Sematext :: :: Solr - Lucene - Nutch - ElasticSearch

> Hey all,

> I have a series of fields with numeric values in my solr index.

> What I want to be able to do is the equivalent of something like below in
> my filter query (fq) parameter:

> sum(fielda, fieldb, fieldc):[0 to 100]

> So the sum of the fields is between 0 and 100.

> Is there some way to do this in SOLR on a FQ?  I've hunted high and low and
> haven't been able to see the correct syntax for it.

> If someone could point me in the right direction, I would greatly
> appreciated it.

> Thanks!

> Mark

View raw message