Versions in this module Expand all Collapse all v0 v0.1.0 Jun 6, 2026 Changes in this version + const DefaultB + const DefaultK1 + const DefaultRRFK + func ReciprocalRankFusion(k float64, rankings ...[]string) map[string]float64 + func Tokenize(text string) []string + type Corpus struct + func New() *Corpus + func NewWithParams(k1, b float64) *Corpus + func (c *Corpus) Add(id, text string) + func (c *Corpus) Len() int + func (c *Corpus) Search(query string, k int) []Result + type DocStats struct + DocLen int + TermFreqs map[string]int + func StatsFor(body string, queryTerms []string) DocStats + func StatsForTokens(tokens []string, queryTerms []string) DocStats + type Result struct + ID string + Score float64 + func FuseRanked(k float64, rankings ...[]string) []Result + type Scorer struct + func NewScorer(queryTerms []string, docs []DocStats, k1, b float64) *Scorer + func (s *Scorer) Score(d DocStats) float64