Thanks Shawn, I will Check that.
Ravi -----Original Message----- From: Shawn Heisey [mailto:apa...@elyograg.org] Sent: Monday, July 20, 2015 10:23 AM To: solr-user@lucene.apache.org Subject: Re: Rule for Score On 7/20/2015 8:16 AM, EXTERNAL Taminidi Ravi (ETI, AA-AS/PAS-PTS) wrote: > Hi All, Can you someone explain or refer me right place to know more on how > the Score is calculated, I am seeing it has few attribute like, > termfrequency, document frequeuncy, weight, boost also it is say sum of , > product of.. > > Is there any example of understanding the basics of these attributes and the > logic for calculating the score. If you add "debugQuery=true" to your URL request, then you will get a full accounting of how the score was calculated for each document in the results. I think "debug=query" also works. Looking at the source code for DefaultSimilarity is probably also helpful. Here's the javadoc for that class: http://lucene.apache.org/core/5_2_0/core/org/apache/lucene/search/similarities/DefaultSimilarity.html Much more detailed info is available by clicking on the parent class link (TFIDFSimilarity) on this page. Thanks, Shawn