Skip to content

Commit

Permalink
Update project index settings
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Sep 12, 2024
1 parent 080494e commit c4461a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions backend/apps/owasp/api/search/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def projects(request):
"idx_topics",
"idx_url",
],
"typoTolerance": "min",
"hitsPerPage": 25,
"minProximity": 4,
}

return JsonResponse(
Expand Down
1 change: 0 additions & 1 deletion backend/apps/owasp/index/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class ProjectIndex(AlgoliaIndex):
)

settings = {
"minProximity": 4,
"indexLanguages": ["en"],
"customRanking": [
"desc(idx_level)",
Expand Down

0 comments on commit c4461a8

Please sign in to comment.