Hello,

I'm currently trying to find a way to boost the score of a document by its own 
score in Solr 9.4.0.

At the moment, we use Lucene 6.8.0 for the search, where we use a formula for 
calculating the score.
For example, the formula could look like this: "SCORE + 
(2*FIELD1*(SCORE*FIELD2))".

So, my question now is how I can implement this formula in my request for Solr 
to obtain similar responses as we currently get from Lucene, or how can I use 
the formula in Sorl?

Currently I tried a request something like this:
curl --request POST --url 'http://localhost:8983/solr/COLLECTION_NAME/query' 
--header 'Content-Type: application/json' --data '
{"query":
   {"edismax":
      {"query":"507997",
       "qf":"ARTNR^10 ",
       
"bf":"sum(query(score),product(2,query(score),product(query(score)*FIELD2)))"
      }
   },
"fields":["ARTNR","score"]
}'

I hope someone can assist me with this issue.

Best regards,
Jens



H. Gautzsch Zentrale Dienste GmbH
Dornierweg 12, 48155 M?nster
H. Gautzsch Zentrale Dienste GmbH, M?nster, Reg. Ger. HRB 17264
Gesch?ftsf?hrer: Peter Benthues, Frank Kamischke, Philipp Naumann, Robert 
Naumann

Reply via email to