You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Bill Au <bi...@gmail.com> on 2009/11/06 23:21:06 UTC

Re: change sort order for MoreLikeThis

I just opened a JIRA on this:

https://issues.apache.org/jira/browse/SOLR-1545

I have attached a patch there that seems to work for me.

Bill


On Wed, Aug 5, 2009 at 2:28 AM, Renz Daluz <re...@gmail.com> wrote:

> Oh and yes, I tried to sort that is not mlt field and it's not taking
> effect:
> Here the whole parameters that I'm using:
>
>
> mlt.fl=text,title&tie=0.01&mlt.mintf=1&mlt.match.include=true&fl=tagged_bucket,tagged_entities&bf=recip(rord(time_published),1,1000,165)^1500&qt=mlt&mlt.minwl=3&mm=5&mlt.boost=true&qf=text^0.5+title^0.4++description^0.01+keywords^0.01+bestlink_keywords^0.1+authors_t^0.05&mlt.maxwl=20&mlt.maxntp=200&mlt.maxqt=10&mlt.interestingTerms=details&rows=200&mlt.mindf=3&pf=text^300+title^10+tagged_entities^200+inbound_text^1+bestlink_keywords^1&q=id:story|25584945c&ps=1&sort=time_published+desc
>
>
> Thanks,
> Renz
>
>
> 2009/8/5 Renz Daluz <re...@gmail.com>
>
> > Thanks guys.
> > I tried to boost it instead (as sort looks like not supported) but it's
> not
> > taking effect. Here are the parameters that I'm using:
> >
> > I want to boost by time_published field and I enable mlt.boost
> > &bf=recip(rord(time_published),1,1000,165)^1500&qt=mlt&mlt.boost=true
> >
> >
> > Regards,
> > /Renz
> >
> >
> >
> > 2009/8/4 Avlesh Singh <av...@gmail.com>
> >
> > >
> >> > You lost me.
> >> >
> >> Absolutely sorry about that Bill :(
> >>
> >> How does boosting change the sort order?
> >>
> >> What I really meant here is that if you have more than one "similarity"
> >> fields in you MLT query, you can boost the results found due to one over
> >> the
> >> other. It was not at all aimed to be an answer for sort. Actually, I was
> >> too
> >> prompt to respond!
> >>
> >> What about sorting on a field that is not the mlt field?
> >> >
> >> Haven't tried this yet. It would be surprising if it does not work as
> >> expected.
> >>
> >> Cheers
> >> Avlesh
> >>
> >> On Tue, Aug 4, 2009 at 3:24 AM, Bill Au <bi...@gmail.com> wrote:
> >>
> >> > Avlesh,
> >> >     You lost me.  How does boosting change the sort order?  What about
> >> > sorting on a field that is not the mlt field?
> >> >
> >> > Bill
> >> >
> >> > On Mon, Aug 3, 2009 at 3:13 AM, Avlesh Singh <av...@gmail.com>
> wrote:
> >> >
> >> > > You can boost the similarity field matches, if you want. Look for
> >> > mlt.boost
> >> > > at http://wiki.apache.org/solr/MoreLikeThis
> >> > >
> >> > > Cheers
> >> > > Avlesh
> >> > >
> >> > > On Mon, Aug 3, 2009 at 11:33 AM, Renz Daluz <re...@gmail.com>
> >> > wrote:
> >> > >
> >> > > > Hi,
> >> > > >
> >> > > > I'm looking at changing the result order when searching by MLT. I
> >> tried
> >> > > the
> >> > > > sort=<field>,<order> but it's not working. I check the wiki and
> >> can't
> >> > > find
> >> > > > anything. Is there a way to do this?
> >> > > >
> >> > > > Thanks,
> >> > > > /Laurence
> >> > > >
> >> > >
> >> >
> >>
> >
> >
>