java - Why is Solr not ranking by the largest similarity factor? -


i've created custom similarity class, , want solr rank coord(). in results, document debug query result

 0.0 = (match) weight(text:现在 in 0) [mynewsimilarityclass], result of:       0.0 = score(doc=0,freq=1.0 = termfreq=1.0          ), product of:         0.0 = queryweight, product of:           0.0 = idf(docfreq=103081, maxdocs=4060152)           0.0 = querynorm         0.0 = fieldweight in 0, product of:           0.0 = tf(freq=1.0), freq of:             1.0 = termfreq=1.0           0.0 = idf(docfreq=103081, maxdocs=4060152)           1.0 = fieldnorm(doc=0)   1.43425728e8 = coord(2/167) 

ranked higher document debug query result

 0.0 = (match) weight(text:中国 in 5) [mynewsimilarityclass], result of:       0.0 = score(doc=5,freq=1.0 = termfreq=1.0),         product of:         0.0 = queryweight, product of:           0.0 = idf(docfreq=39366, maxdocs=4060152)           0.0 = querynorm         0.0 = fieldweight in 5, product of:           0.0 = tf(freq=1.0), freq of:             1.0 = termfreq=1.0           0.0 = idf(docfreq=39366, maxdocs=4060152)           1.0 = fieldnorm(doc=5)   8.9641069e8 = coord(5/167) 

both equal aside coord() factor, why not putting higher resulting coord() factor first in ranking?

since other scoring factors zero, total score both documents 0 / 0 (which value shown first). scoring (mainly) product of each term (and not additive).

see lucene's practical , conceptual scoring formula.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -