rank

package
v0.28.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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[T scoreRanker] []T

func (ByScore[T]) Len

func (r ByScore[T]) Len() int

func (ByScore[T]) Less

func (r ByScore[T]) Less(i, j int) bool

func (ByScore[T]) Swap

func (r ByScore[T]) Swap(i, j int)

type Results

type Results []result.Result

func (Results) Rank added in v0.22.0

func (r Results) Rank(rconf config.CategoryRanking)

Calculates the Score, sorts by it and then populates the Rank field of every result.

type Suggestions added in v0.22.0

type Suggestions []result.Suggestion

func (Suggestions) Rank added in v0.22.0

func (s Suggestions) Rank(rconf config.CategoryRanking)

Calculates the Score, sorts by it and then populates the Rank field of every result.

Jump to

Keyboard shortcuts

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