rank

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rank

func Rank(resMap map[string]*result.Result, rconf config.CategoryRanking) []result.Result

Types

type ByRetrievedRank

type ByRetrievedRank []RankFiller

func (ByRetrievedRank) Len

func (r ByRetrievedRank) Len() int

func (ByRetrievedRank) Less

func (r ByRetrievedRank) Less(i, j int) bool

func (ByRetrievedRank) Swap

func (r ByRetrievedRank) Swap(i, j int)

type ByScore

type ByScore []result.Result

func (ByScore) Len

func (r ByScore) Len() int

func (ByScore) Less

func (r ByScore) Less(i, j int) bool

func (ByScore) Swap

func (r ByScore) Swap(i, j int)

type RankFiller

type RankFiller struct {
	ArrInd  int
	RetRank result.RetrievedRank
	RRInd   int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL