Re: Include Solr score into a ranking algorithm

2014-11-20 Thread Nicholas Ding
Thank you so much, Mikhail! It works perfectly. On Thu, Nov 20, 2014 at 12:54 PM, Mikhail Khludnev < mkhlud...@griddynamics.com> wrote: > On Thu, Nov 20, 2014 at 5:23 PM, Nicholas Ding > wrote: > > > Hi Mikhail, > > > > Thank you very much! I'm using eDisMax by default, I think I will need to >

Re: Include Solr score into a ranking algorithm

2014-11-20 Thread Mikhail Khludnev
On Thu, Nov 20, 2014 at 5:23 PM, Nicholas Ding wrote: > Hi Mikhail, > > Thank you very much! I'm using eDisMax by default, I think I will need to > change it to defType=func and I wonder why do you ask, because the given link has three examples of including edismax into the simple calculation.

Re: Include Solr score into a ranking algorithm

2014-11-20 Thread Ahmet Arslan
Hi Nicholas, you can use "sort by function" feature of solr. &sort=sum( mul(query(field:TfIdfQuery),x1), mul(x1,v2)) On Thursday, November 20, 2014 4:23 PM, Nicholas Ding wrote: Hi Mikhail, Thank you very much! I'm using eDisMax by default, I think I will need to change it to defType=func a

Re: Include Solr score into a ranking algorithm

2014-11-20 Thread Nicholas Ding
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 Nic

Re: Include Solr score into a ranking algorithm

2014-11-20 Thread Mikhail Khludnev
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