Hi Mikhail, Thank you very much! I'm using eDisMax by default, I think I will need to change it to defType=func and pass all the query parameters (fq mainly) to the sub query right?
Nicholas Ding On Thu, Nov 20, 2014 at 5:22 AM, Mikhail Khludnev < mkhlud...@griddynamics.com> wrote: > 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 <nicholas...@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> > <mkhlud...@griddynamics.com> >