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

[Autocomplete] Make a search across multiple models #530

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

aliciapaz
Copy link
Collaborator

Context

From Steph's feedback on autocomplete feature:

could we use multiple lists? Like org name, services, causes, populations served and tags? Also any luck with suggesting spelling errors?

What changed

  • Use pg_search's multisearch to look for matches in the models mentioned above.
  • Set lower threshold value in trigram search to match misspelled words
  • Set word length to 2 for showing suggestions
  • Sort suggestions alphabetically

How to test it

Type words in search bar.

References

ClickUp ticket

@aliciapaz aliciapaz self-assigned this Mar 11, 2024
@aliciapaz aliciapaz temporarily deployed to givingconnection-staging March 11, 2024 20:50 Inactive
@aliciapaz aliciapaz temporarily deployed to givingconnection-staging March 11, 2024 22:58 Inactive
@aliciapaz aliciapaz merged commit 4d4397d into main Mar 13, 2024
2 checks passed
@aliciapaz aliciapaz deleted the feature/autocomplete-enhancements branch March 13, 2024 23:13
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