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

Modify the autocomplete processing logic to improve results #4667

Merged
merged 7 commits into from
Oct 14, 2024

Conversation

gmechali
Copy link
Contributor

@gmechali gmechali commented Oct 14, 2024

Negates the "score", best match has lowest score. This allows us to sort with the first results being the best matches, but preserves the Google Maps ordering for same score responses.
Cleans up the logic a bit to remove dupes at the end. The new sorting requires computing all scores, so this deduping at the end doesnt lead to useless processing.
When computing score, take into account the ordering of the words.
This significantly improves the results from my testing.

@gmechali gmechali requested a review from dwnoble October 14, 2024 16:46
@gmechali gmechali marked this pull request as ready for review October 14, 2024 17:00
Copy link
Contributor

@dwnoble dwnoble left a comment

Choose a reason for hiding this comment

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

Nice!

@gmechali gmechali merged commit c8e9ba5 into datacommonsorg:master Oct 14, 2024
8 checks passed
@gmechali gmechali deleted the queries branch October 14, 2024 21:02
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.

2 participants