: possible strings.   So if the "source" field has a value "a", then I want
: to multiply the score by 1. If the "source" field has a value "b", then I
: want to multiple the score by 2 ... and so on. What is the way to go about
: doing this ?

how long is your "and so on" list?

You could use the boost param of edismax to do this, by constructing a 
function that returns the appropriate value based on the results of your 
query (either using the termfreq() or "query() functions) ... but if these 
mappings from values->score multipliers are generally static, you can also 
use ExternalFileFiel (it doesn't have to key off of the unique key field, 
it can key off of any single valued field) .. of the mappings are 
*REALLY* static just computed them when indexing hte docs.


-Hoss

Reply via email to