Hi,

I have a requirement to reorder the search results by multiplying the
*text relevance
score* of a product with the *product_guideline_score,* which will be
stored in index and will have some floating point number.

e.g. On searching the *jute* in title if we got some results ID1 & ID2

ID1 -> title = jute
          score = 8.0
*          product_guideline_score = 2.0*

ID2 -> title = jute bags
          score = 7.5
*          product_guideline_score** = 2.2*

So the new score should be like this

ID1 -> title = jute
          score = *product_score * 8 = 16.0*
*          product_guideline_score** = 2.0*

ID2 -> title = jute bags
          score = *product_score * 7.5 = 16.5*
*          product_guideline_score** = 2.2*

*So new ordering should be*

ID2 -> title = jute bags
          score* = 16.5*

ID1 -> title = jute
          score =* 16.0*

How can I do this in single query on runtime in solr.

With Regards
Aman Tandon

Reply via email to