Skip to main content

Module rankers

Module rankers 

Source
Expand description

Built-in rankers (DESIGN.md §5.11.3).

Structs§

AlphabeticalRanker
rank:alphabetical. Plain A-Z sort on text. Useful when score information isn’t trustworthy (e.g. uniform-score generators like gen:files).
MruRanker
rank:mru. Combines the matcher’s MatchScore with a per- candidate bonus (frecency / recency / MRU-style) supplied by the caller. Bonus is added to the score; the result is re-sorted descending with alphabetical tie-break.
ScoreRanker
rank:score. Default v1 ranker. Sorts by descending score with alphabetical tie-break on candidate text.