|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
change sort order for MoreLikeThisHi,
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 |
|
|
Re: change sort order for MoreLikeThisYou 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 <renz052496@...> 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 > |
|
|
Re: change sort order for MoreLikeThisAvlesh,
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 <avlesh@...> 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 <renz052496@...> 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 > > > |
|
|
Re: change sort order for MoreLikeThisI checked the javadoc of Lucene's MoreLikeThis and MoreLikeThisQuery and
don't see any method regarding sorting at all. So my guess is we can't sort the MoreLIkeThis result in Solr until this is supported in Lucene. Bill On Mon, Aug 3, 2009 at 5:54 PM, Bill Au <bill.w.au@...> 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 <avlesh@...> 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 <renz052496@...> 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 >> > >> > > |
|
|
Re: change sort order for MoreLikeThis>
> 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 <bill.w.au@...> 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 <avlesh@...> 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 <renz052496@...> > 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 > > > > > > |
|
|
Re: change sort order for MoreLikeThisThanks 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 <avlesh@...> > > > > 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 <bill.w.au@...> 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 <avlesh@...> 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 <renz052496@...> > > 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 > > > > > > > > > > |
|
|
Re: change sort order for MoreLikeThisOh 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 <renz052496@...> > 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 <avlesh@...> > > > >> > 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 <bill.w.au@...> 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 <avlesh@...> 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 <renz052496@...> >> > 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 >> > > > >> > > >> > >> > > |
|
|
Re: change sort order for MoreLikeThisI 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 <renz052496@...> 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 <renz052496@...> > > > 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 <avlesh@...> > > > > > > >> > 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 <bill.w.au@...> 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 <avlesh@...> > 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 <renz052496@...> > >> > 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 > >> > > > > >> > > > >> > > >> > > > > > |
| Free embeddable forum powered by Nabble | Forum Help |