Using a function in a filter query

2009-04-20 Thread Pete Smith
I want to filter my result set before I search. I know the correct way to do this is by using the filter query (fq) parameter. However, I want to filter based on the output of a function performed on a field. I have a field 'rating' which is an integer in the range of 1 to ~75000. The upper

Re: Using a function in a filter query

2009-04-20 Thread Yonik Seeley
On Mon, Apr 20, 2009 at 12:40 PM, Pete Smith pete.sm...@lovefilm.com wrote: fq=rord(rating):[0 TO 500] Solr 1.4 can now do range queries on arbitrary functions: http://lucene.apache.org/solr/api/org/apache/solr/search/FunctionRangeQParserPlugin.html Note that ord() and rord() won't work