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: product(popularity,score) gives error undefined field score
Date Wed, 01 Feb 2012 20:12:27 GMT

: I m trying to add some weight for popularity in the score returned by solr
: query. 
: http://localhost:10101/solr/syx/select?q={!boost%20b=product(popularity,score)}SIM&rows=100&fl=score,id&debug=true

: 
: I get error "undefined field score"

that's probably because you have no field named "score"

i'm guessing what you are trying to do is multiple the score of your query 
for "SIM" by the value of the popularity field, in which case you should 
be using something like...

http://localhost:10101/solr/syx/select?q={!boost+b=popularity}SIM&rows=100&fl=score,id&debug=true

...you can't feed use the resulting score from a query as the input to a 
function that is contributing to that score.


-Hoss

Mime
View raw message