(result-ranking) Use a weighted calculation of priority term importance
This commit is contained in:
parent
c7a6a71d07
commit
48986574ae
@ -59,15 +59,15 @@ public class Bm25Factor {
|
||||
if ((keyword.encodedWordMetadata() & WordFlags.SiteAdjacent.asBit()) != 0)
|
||||
qcount += 0.5;
|
||||
if ((keyword.encodedWordMetadata() & WordFlags.UrlPath.asBit()) != 0)
|
||||
qcount += 0.75;
|
||||
qcount += 1.25;
|
||||
if ((keyword.encodedWordMetadata() & WordFlags.UrlDomain.asBit()) != 0)
|
||||
qcount += 1.25;
|
||||
if ((keyword.encodedWordMetadata() & WordFlags.ExternalLink.asBit()) != 0)
|
||||
qcount += 1;
|
||||
qcount += 2.5;
|
||||
if ((keyword.encodedWordMetadata() & WordFlags.Title.asBit()) != 0)
|
||||
qcount += 1.5;
|
||||
if ((keyword.encodedWordMetadata() & WordFlags.Subjects.asBit()) != 0)
|
||||
qcount += 1.5;
|
||||
qcount += 1.25;
|
||||
if ((keyword.encodedWordMetadata() & WordFlags.NamesWords.asBit()) != 0)
|
||||
qcount += 0.25;
|
||||
if ((keyword.encodedWordMetadata() & WordFlags.TfIdfHigh.asBit()) != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user