Re: Solr sort by score not working properly

2018-06-22 Thread Shawn Heisey
On 6/22/2018 9:29 AM, Prathyusha Kondeti wrote: > when I search for java using below query > > curl > http://localhost:8983/solr/test/select?fl=score,id=(java)=json=score > desc > > I am expecting the content with *Id :2* should come first as it contains > more matches related to java.But solr is

Re: Solr sort by score not working properly

2018-06-22 Thread Alessandro Benedetti
Hi, if you add to the request the param : debugQuery=on you will see what happens under the hood and understand how the score is assigned. If you are new to the Lucene Similarity that Solr version uses ( BM25[1]) you can paste here the debug score response and we can briefly explain it to you the

Solr sort by score not working properly

2018-06-22 Thread Prathyusha Kondeti
Hi, I am using *Solr v6.2.1* .We are not getting accurate results using "sort score desc". let's assume we have a list of documents in our index as below [{ "id": "1", "content": ["*java* developer"] }, { "id": "2", "content": ["*Java* is object oriented.*Java* robust language.Core *java* "] },