lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Using a sum of fields in a filter query
Date Wed, 05 Sep 2012 01:54:56 GMT

: The piece I was also missing as well was to add:
: <queryParser name="functionparser"
: class="org.apache.solr.search.FunctionQParserPlugin"/>

a) the FunctionQParserPlugin is already registered by default using hte 
name "func" -- you shouldn't need to register it explicitly unless you 
want to use it with a custom name.

b) the FunctionQParserPlugin is not even required in order to use 
"FunctionRangeQParserPlugin" (aka: "frange") that RafaƂ suggested for 
filtering by function range...

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



-Hoss
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message