I am working on Solr 4 to optimize the ranking of my solr results based on the popularity rating stored in Index.
Now that someone is looking, in addition to relevance ranking, I want to influence the relevance rating using the popularity rating. The simplest formula can be:
new radiance rank = rating * popularrank
I looked at the Solr function request at http://wiki.apache.org/solr/FunctionQuery#product to achieve the same, but I'm not sure how to get it working. I did not understand how to multiply the score using the product function. Trying to do this, I always get an error because the field is undefined.
Now I can use boost as defined here How to increase fields in solr , but I have additional logic / requirement when I want to use the functional request provided by Solr.
For example, I tried to execute the following simple query, which seems to work
http://solr:8983/solr/select?q=hp%20laptop&defType=edismax&fl=Id,Name,score&bf=product%28$v1,$v2%29&v1=Id&v2=2
Now, for my actual requirement, I want to take the estimate as $ v2, however I cannot find how to do it.
Any help is very complicated.
full-text-search lucene solr solrnet solr4
Krutal Modi
source share