: But the sort=product(score, rankingField) is not working in my test. What
: probably wrong?

the problem is "score" is not a field or a function -- Solr doesn't know 
exactly what "score" you want it to use there (scores from which query?)

You either need to refrence the query in the function (using the 
"query(...)" function) or you need to incorporate your function directly 
into the score (using something like the "boost" QParser).

Unless you need the "score" of the docs, from your orriginal query, to be 
returned in the fl, or used in some other clause of your sort, i would 
suggest using the boost parser -- that way your final scores will match 
the scores you computed with the function...

   qq=your original query
    q={!boost b=rankingField v=$qq}

https://lucene.apache.org/solr/4_0_0/solr-core/org/apache/solr/search/BoostQParserPlugin.html
https://people.apache.org/~hossman/ac2012eu/


-Hoss

Reply via email to