rrf

fun rrf(topN: Int, k: Int, hits: Array<TopDocs>): TopDocs

Reciprocal Rank Fusion method.

This method combines different search results into a single ranked list by combining their ranks. This is especially well suited when combining hits computed via different methods, whose score distributions are hardly comparable.

Return

a TopDocs contains the top N ranked results.

Parameters

topN

the top N results to be returned

k

a constant determines how much influence documents in individual rankings have on the final result. A higher value gives lower rank documents more influence. k should be greater than or equal to 1.

hits

a list of TopDocs to apply RRF on