Levenshtein threshold depends on query length