lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: Include Solr score into a ranking algorithm
Date Thu, 20 Nov 2014 10:22:11 GMT
Hello Nicholas!
you can specify a function query as a main query where you can operate with
DVs, then you can use regular tfidf score from arbitrary query as one of
the arguments in the functional query see an example in
http://wiki.apache.org/solr/FunctionQuery#query

have a good research!

On Thu, Nov 20, 2014 at 6:45 AM, Nicholas Ding <nicholasdsj@gmail.com>
wrote:

> Hi,
>
> Currently, I'm trying to implement a ranking algorithm on Solr to include
> TFIDFSimilarity score into a formula.
>
> Ranking = TFIDFSimilarity Score * X1 + V1 * X2 + V2 * X3 + ..... + Vn-1 *
> Xn
>
> Basically, the values of Vn are stored in DocValues, I can access them in
> customized Function Query. The Xn are parameters I will pass to the
> Function Query.
>
> I searched on internet and dig a little bit in the Solr/Lucene source code.
> I found there is no way to access TFIDFSimilarity Score in Function Query.
> (Please correct me if I'm wrong.)
>
> So, I'm wondering is it possible to do my ranking algorithm in Solr/Lucene?
>
> --
> Nicholas Ding
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhludnev@griddynamics.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message