Initial commit
This commit is contained in:
8
folkugat_web/config/search.py
Normal file
8
folkugat_web/config/search.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user