Re: Customise score

2014-07-03 Thread rachun
t score? 3) if this solution it doesn't work for me could you please suggest me other solution? Thank you very much for your help, Chun. -- View this message in context: http://lucene.472066.n3.nabble.com/Customise-score-tp4145214p4145417.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Customise score

2014-07-02 Thread rachun
p://lucene.472066.n3.nabble.com/Customise-score-tp4145214p4145359.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Customise score

2014-07-02 Thread Jack Krupansky
&sort=sum(base_score,query($q,0))+desc&wt=json&indent=true -- Jack Krupansky -Original Message- From: rachun Sent: Wednesday, July 2, 2014 7:44 PM To: solr-user@lucene.apache.org Subject: Re: Customise score Hi Jack, I tried as you suggest .../select?q=MacBook&sor

Re: Customise score

2014-07-02 Thread rachun
exists in the index: sum(base_score,score)", "code":400}} so, when I try something like this .../select?q=MacBook&sort=sum(base_score,base_score)+desc&wt=json&indent=true it works fine. How to archive this, any idea? Best Regards, Chun -- View this me

Re: Customise score

2014-07-02 Thread rachun
ot;, "code":400}} Best regards, Chun -- View this message in context: http://lucene.472066.n3.nabble.com/Customise-score-tp4145214p4145320.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Customise score

2014-07-02 Thread Jack Krupansky
Subject: Re: Customise score Hi, Why did you use upper case? What happens when you use : sort=sum(... On Wednesday, July 2, 2014 6:23 PM, rachun wrote: Gora, firstly I would like thank you for your quick response. .../select?q=MacBook&sort=SUM(base_score, score)+desc&wt=json&in

Re: Customise score

2014-07-02 Thread Ahmet Arslan
ut it didn't work and I got this error message "error":{     "msg":"Can't determine a Sort Order (asc or desc) in sort spec 'SUM(base_score, score) desc', pos=15",     "code":400}} Best Regards, Chun -- View this message in context: h

Re: Customise score

2014-07-02 Thread rachun
rder (asc or desc) in sort spec 'SUM(base_score, score) desc', pos=15", "code":400}} Best Regards, Chun -- View this message in context: http://lucene.472066.n3.nabble.com/Customise-score-tp4145214p4145216.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Customise score

2014-07-02 Thread Gora Mohanty
On 2 July 2014 20:32, rachun wrote: > Dear all, > > Could anybody suggest me how to customize the score? > So, I have data like this .. > > {ID : '0001', Title :'MacBookPro',Price: 400,Base_score:'121.2'} > {ID : '0002', Title :'MacBook',Price: 350,Base_score:'100.2'} > {ID : '0003', Title :'Lapto

Customise score

2014-07-02 Thread rachun
t should be something like this.. {ID : '0001', Title :'MacBookPro',Price: 400,Base_score:'121.2',score:122.31} {ID : '0002', Title :'MacBook',Price: 350,Base_score:'100.2',score:101.65} I'm not familia with Java so I can't writ