Aman, If you are using edismax then what you have written is just fine.
For Lucene query parser queries, wrap them with the boost query parser: q={!boost b=product_guideline_score v=$qq}&qq=jute Note in your example you don't need product(), just do boost=product_guideline_score Upayavira On Thu, Sep 10, 2015, at 07:33 AM, Aman Tandon wrote: > Hi, > > I figured it out to implement the same. I will be doing this by using the > boost parameter > > e.g. http://server:8112/solr/products/select?q=jute&qf=title > *&boost=product(1,product_guideline_score)* > > If there is any other alternative then please suggest. > > With Regards > Aman Tandon > > On Thu, Sep 10, 2015 at 11:02 AM, Aman Tandon <amantandon...@gmail.com> > wrote: > > > 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 > >