Files
folkugat-web/folkugat_web/config/search.py
2025-03-09 20:00:54 +01:00

9 lines
302 B
Python

# Minimum ngram length to compute, search string shorther than this limit are ignored
MIN_NGRAM_LENGTH = 3
# Maximum number of insertions/deletions to check for when comparing strings
QUERY_NGRAM_RANGE = 2
# Maximum distance to show a match as the result of a search
SEARCH_DISTANCE_THRESHOLD = 0.25