See "Function Query":
http://wiki.apache.org/solr/FunctionQuery
If you are using the dismax or edismax query parser you can use the "bf"
request parameter.
e.g.,
q=foo&bf="ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3"
-- Jack Krupansky
-----Original Message-----
From: smita
Sent: Thursday, June 14, 2012 4:40 PM
To: solr-user@lucene.apache.org
Subject: How to boost a field with another field's value?
I have 2 fields in my schema - e.g.
long field "field1" and long field "field 2".
I'd like my boost query to be such that field1 is boosted by the value of
field 2 for each document.
What should the query time boost for this look like? I was able to do this
using Index time boosting with the DataImportHandler, but couldn't figure
out how to do this using query time boosting.
Thanks!
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-boost-a-field-with-another-field-s-value-tp3989706.html
Sent from the Solr - User mailing list archive at Nabble.com.