rank

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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(results []result.Result, rconf config.CategoryRanking) []result.Result

Cast []result.Result to Results, call rank() and return []result.Result slice.

Types

type ByPageAndOnPageRank

type ByPageAndOnPageRank []*result.Rank

func (ByPageAndOnPageRank) Len

func (r ByPageAndOnPageRank) Len() int

func (ByPageAndOnPageRank) Less

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

func (ByPageAndOnPageRank) Swap

func (r ByPageAndOnPageRank) 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 Results

type Results []result.Result

Jump to

Keyboard shortcuts

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