Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple search fields #810

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tudoramariei
Copy link
Member

change the way buildings are searched

@vercel
Copy link

vercel bot commented Jan 29, 2022

@tudoramariei is attempting to deploy a commit to the Code for Romania Team on Vercel.

A member of the Team first needs to authorize it.

@tudoramariei tudoramariei force-pushed the search_revamp branch 2 times, most recently from 54b19a3 to 08976ed Compare January 29, 2022 14:00
.filter(
similarity__gt=settings.TRIGRAM_SIMILARITY_THRESHOLD,
Q(rank__gte=settings.SEARCH_RANKING_THRESHOLD)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we pull this in a separate method ?

@@ -184,7 +184,8 @@
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
}

TRIGRAM_SIMILARITY_THRESHOLD = 0.1
SEARCH_RANKING_THRESHOLD = 0.4
TRIGRAM_SIMILARITY_THRESHOLD = 0.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how are these numbers obtained ? empirical ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants