Hi Amit; First of all, I suggest that you should read here: http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/search/similarities/TFIDFSimilarity.html to understand the basics of score calculation of documents.
Thanks; Furkan KAMACI 2013/11/26 GaneshSe <ganeshmail...@gmail.com> > You might want to look at the Solr Relavancy for the same. > > http://wiki.apache.org/solr/SolrRelevancyFAQ > <http://wiki.apache.org/solr/SolrRelevancyFAQ> > > Also, it will even better if you look at the link above with outcome you > want to get to, like "Want to know why this document is better than the > other" or "Why the document in my db did not come up?" > > > Amit Aggarwal wrote > > Hello All, > > > > Can any one help me in understanding "debugQuery" output like this. > > > > <lst name="explain"> > > > > <str> > > 0.6276088 = (MATCH) sum of: > > > > 0.6276088 = (MATCH) max of: > > > > 0.18323982 = (MATCH) sum of: > > > > 0.18323982 = (MATCH) weight(state_search:a in 327) > [DefaultSimilarity], > > result of: > > > > 0.18323982 = score(doc=327,freq=2.0 = termFreq=2.0 > > > > ), product of: > > > > 0.3188151 = queryWeight, product of: > > > > 3.2512918 = idf(docFreq=35, maxDocs=342) > > > > 0.098057985 = queryNorm > > > > 0.5747526 = fieldWeight in 327, product of: > > > > 1.4142135 = tf(freq=2.0), with freq of: > > > > 2.0 = termFreq=2.0 > > > > 3.2512918 = idf(docFreq=35, maxDocs=342) > > > > 0.125 = fieldNorm(doc=327) > > > > 0.2505932 = (MATCH) sum of: > > > > 0.2505932 = (MATCH) weight(country_search:a in 327) > > [DefaultSimilarity], result of: > > > > 0.2505932 = score(doc=327,freq=1.0 = termFreq=1.0 > > > > ), product of: > > > > 0.3135134 = queryWeight, product of: > > > > 3.1972246 = idf(docFreq=37, maxDocs=342) > > > > 0.098057985 = queryNorm > > > > 0.79930615 = fieldWeight in 327, product of: > > > > 1.0 = tf(freq=1.0), with freq of: > > > > 1.0 = termFreq=1.0 > > > > 3.1972246 = idf(docFreq=37, maxDocs=342) > > > > 0.25 = fieldNorm(doc=327) > > > > 0.25283098 = (MATCH) sum of: > > > > 0.25283098 = (MATCH) weight(area_search:a in 327) > [DefaultSimilarity], > > result of: > > > > 0.25283098 = score(doc=327,freq=1.0 = termFreq=1.0 > > > > ), product of: > > > > 0.3983333 = queryWeight, product of: > > > > 4.062222 = idf(docFreq=15, maxDocs=342) > > > > 0.098057985 = queryNorm > > > > 0.6347222 = fieldWeight in 327, product of: > > > > 1.0 = tf(freq=1.0), with freq of: > > > > 1.0 = termFreq=1.0 > > > > 4.062222 = idf(docFreq=15, maxDocs=342) > > > > 0.15625 = fieldNorm(doc=327) > > > > 0.6276088 = (MATCH) sum of: > > > > 0.12957011 = (MATCH) weight(city_search:a in 327) > [DefaultSimilarity], > > result of: > > > > 0.12957011 = score(doc=327,freq=1.0 = termFreq=1.0 > > > > ), product of: > > > > 0.3188151 = queryWeight, product of: > > > > 3.2512918 = idf(docFreq=35, maxDocs=342) > > > > 0.098057985 = queryNorm > > > > 0.40641147 = fieldWeight in 327, product of: > > > > 1.0 = tf(freq=1.0), with freq of: > > > > 1.0 = termFreq=1.0 > > > > 3.2512918 = idf(docFreq=35, maxDocs=342) > > > > 0.125 = fieldNorm(doc=327) > > > > 0.3638727 = (MATCH) weight(city_search:ab in 327) > [DefaultSimilarity], > > result of: > > > > 0.3638727 = score(doc=327,freq=1.0 = termFreq=1.0 > > > > ), product of: > > > > 0.5342705 = queryWeight, product of: > > > > 5.4485164 = idf(docFreq=3, maxDocs=342) > > > > 0.098057985 = queryNorm > > > > 0.68106455 = fieldWeight in 327, product of: > > > > 1.0 = tf(freq=1.0), with freq of: > > > > 1.0 = termFreq=1.0 > > > > 5.4485164 = idf(docFreq=3, maxDocs=342) > > > > 0.125 = fieldNorm(doc=327) > > > > 0.13416591 = (MATCH) weight(city_search:b in 327) > [DefaultSimilarity], > > result of: > > > > 0.13416591 = score(doc=327,freq=1.0 = termFreq=1.0 > > > > ), product of: > > > > 0.32441998 = queryWeight, product of: > > > > 3.3084502 = idf(docFreq=33, maxDocs=342) > > > > 0.098057985 = queryNorm > > > > 0.41355628 = fieldWeight in 327, product of: > > > > 1.0 = tf(freq=1.0), with freq of: > > > > 1.0 = termFreq=1.0 > > > > 3.3084502 = idf(docFreq=33, maxDocs=342) > > > > 0.125 = fieldNorm(doc=327) > > > > > > </str> > > > > > > > > > > > > > > > > Any links where this explaination is explained ? > > > > Thanks > > > > -- > > Amit Aggarwal > > 8095552012 > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Please-help-me-to-understand-debugQuery-output-tp4103210p4103241.html > Sent from the Solr - User mailing list archive at Nabble.com. >