C# Class NuGet.Indexing.DownloadsScoreProvider

Inheritance: Lucene.Net.Search.Function.CustomScoreProvider
Mostra file Open project: NuGet/NuGet.Services.Metadata

Public Methods

Method Description
CustomScore ( int docId, float subQueryScore, float valSrcScore ) : float
DownloadScore ( long totalDownloads, QueryBoostingContext context ) : float
DownloadsScoreProvider ( IndexReader reader, int[]>.IReadOnlyDictionary idMapping, Downloads downloads, RankingResult ranking, QueryBoostingContext context, double baseBoost ) : System

Private Methods

Method Description
AdjustByDownloads ( int docId ) : float
RankingScore ( string readerName, RankingResult rankings, int doc, double baseBoost ) : float

Method Details

CustomScore() public method

public CustomScore ( int docId, float subQueryScore, float valSrcScore ) : float
docId int
subQueryScore float
valSrcScore float
return float

DownloadScore() public static method

public static DownloadScore ( long totalDownloads, QueryBoostingContext context ) : float
totalDownloads long
context QueryBoostingContext
return float

DownloadsScoreProvider() public method

public DownloadsScoreProvider ( IndexReader reader, int[]>.IReadOnlyDictionary idMapping, Downloads downloads, RankingResult ranking, QueryBoostingContext context, double baseBoost ) : System
reader Lucene.Net.Index.IndexReader
idMapping int[]>.IReadOnlyDictionary
downloads Downloads
ranking RankingResult
context QueryBoostingContext
baseBoost double
return System