MoreLikeThis not returning 100% score rate in Lucene.Net when comparing the same document with each other -


i don't know if calling lucene.net correctly. i'm trying call morelikethis function compare document , i'm getting score of 0.3174651 think should getting score of 1.0. expecting wrong expect?

this code:

                int docid = hits[i].doc;                 var query2 = mlt.like(docid);                 topscoredoccollector collector = topscoredoccollector.create(100, true);                 searcher.search(query2, collector);                 scoredoc[] hits2 = collector.topdocs().scoredocs;                 var result = new list<string>();                 (int k = 0; k < hits2.length; k++)                 {                     docid = hits2[k].doc;                     float score = hits2[k].score;                 } 

am doing wrong please?

the thing doing wrong thinking lucene scores percentages. aren't.

document scores query used compare strength of matches within context of single query. quite effective @ sorting results, are not percentages, , not suitable display user.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -