(result-ranking) Use a weighted calculation of priority term importance

This commit is contained in:
Viktor Lofgren 2023-11-06 12:56:21 +01:00
parent c7a6a71d07
commit 48986574ae

View File

@ -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)