Hi Jack,
I just found out that the sort it doesn't work right for the next page. The
response result show that "numFound":23850. So I tried this
.../select?q=MacBook&sort=sum(base_score,query($q,0))+desc&wt=json&indent=true&start=100
The summary of base_score and document sort at the next page s
Hi, Jack,
Thank you very much for you solution its works!
I'm sorry that I didn't make it clear at the beginning for 'score' which i
mean document score (solr produce it at query time).
Thank you very much for all of you,
Chun.
--
View this message in context:
http://lucene.472066.n3.n
&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
Hi Jack,
I tried as you suggest
.../select?q=MacBook&sort=sum(base_score,score)+desc&wt=json&indent=true
but it didn't work and I got this error message
"error":{
"msg":"sort param could not be parsed as a query, and is not a field
that exists in the index: sum(base_score,score)",
"c
Hi Ahmet,
I also tried this
.../select?q=MacBook&sort=sum(base_score, score)+desc&wt=json&indent=true
I got the same error
"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 me
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
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&indent=true
I tried that but it didn't wo
Gora,
firstly I would like thank you for your quick response.
.../select?q=MacBook&sort=SUM(base_score, score)+desc&wt=json&indent=true
I tried that but 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, scor
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