You can, of course, us a function range query: select?q=text:news&fq={!frange l=0 u=100}sum(x,y)
http://lucene.apache.org/solr/4_5_1/solr-core/org/apache/solr/search/FunctionRangeQParserPlugin.html This will give you a bit more flexibility to meet your goal. On Nov 7, 2013, at 7:26 AM, Erik Hatcher <erik.hatc...@gmail.com> wrote: > Function queries score (all) documents, but don't filter them. All documents > effectively match a function query. > > Erik > > On Nov 7, 2013, at 1:48 PM, Peter Keegan <peterlkee...@gmail.com> wrote: > >> Why does this function query return docs that don't match the embedded >> query? >> select?qq=text:news&q={!func}sum(query($qq),0) >