diff --git a/backend/apps/owasp/api/search/project.py b/backend/apps/owasp/api/search/project.py index c638c74..ce7efc6 100644 --- a/backend/apps/owasp/api/search/project.py +++ b/backend/apps/owasp/api/search/project.py @@ -14,7 +14,9 @@ def projects(request): "idx_topics", "idx_url", ], + "typoTolerance": "min", "hitsPerPage": 25, + "minProximity": 4, } return JsonResponse( diff --git a/backend/apps/owasp/index/project.py b/backend/apps/owasp/index/project.py index af46ab7..9e37fb5 100644 --- a/backend/apps/owasp/index/project.py +++ b/backend/apps/owasp/index/project.py @@ -32,7 +32,6 @@ class ProjectIndex(AlgoliaIndex): ) settings = { - "minProximity": 4, "indexLanguages": ["en"], "customRanking": [ "desc(idx_level)",