diff --git a/web/server/routes/search.py b/web/server/routes/search.py index e5c8e2a..9f2daca 100644 --- a/web/server/routes/search.py +++ b/web/server/routes/search.py @@ -71,6 +71,9 @@ def _is_banned(query: str) -> bool: if len(word) <= 3: continue for term in _banned_terms: + # Skip fuzzy matching for very short banned terms (too many false positives) + if len(term) <= 3: + continue # Only fuzzy match for terms with similar length if abs(len(word) - len(term)) > 2: continue