lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerald <>
Subject how do I create custom function that uses multiple ValuesSources?
Date Wed, 01 Sep 2010 20:09:36 GMT

using the NvlValueSourceParser example, I was able to create a custom
function that has two parameters; a valuesource (a solr field) and a string
literal.  i.e.: myfunc(mysolrfield, "test")

it works well but is a pretty simple function.

what is the the best way to implement a (more complex) custom function that
contains two (or more) ValuesSources as parameters??  i.e.:  

myfunc2(myValuesSource1, myValuesSources2, "test") or
myfunc2(div(myValuesSource1,3), sum(myValuesSources2, 2), "test") or
myfunc2(myValuesSource1, myValuesSource2, myValuesSource3)

I dont have a concrete example right now but will likely get some
application ideas once I figure this out

any thoughts/examples on something like this?
View this message in context:
Sent from the Solr - User mailing list archive at

View raw message