levenshtein

package
v0.0.0-...-f308040 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const KeywordPenalty = 2

KeywordPenalty is the penalty for matching on keywords instead of display names We have a penalty for matching on keywords because currently there are a lot of generic keywords

Variables

This section is empty.

Functions

func DiscoveryScore

func DiscoveryScore(search string, displays map[string]string, keywords map[string]string) int

DiscoveryScore computes the score of a discovery entry with the given search query a negative score means exclude the entry from the results

Types

This section is empty.

Jump to

Keyboard shortcuts

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