lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Ding <nicholas...@gmail.com>
Subject Re: Include Solr score into a ranking algorithm
Date Fri, 21 Nov 2014 02:11:25 GMT
Thank you so much, Mikhail! It works perfectly.

On Thu, Nov 20, 2014 at 12:54 PM, Mikhail Khludnev <
mkhludnev@griddynamics.com> wrote:

> On Thu, Nov 20, 2014 at 5:23 PM, Nicholas Ding <nicholasdsj@gmail.com>
> 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.
>
> pass all the query parameters (fq mainly) to
> > the sub query right?
> >
>
> this one particularly doesn't seem right to me. fq is fq, keep them as is.
>
> >
> > Nicholas Ding
> >
> >
> > On Thu, Nov 20, 2014 at 5:22 AM, Mikhail Khludnev <
> > mkhludnev@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 <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>
> > >
> >
>
>
>
> --
> 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