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 support for trigram strict_word_similarity function #539

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nunesmatheus
Copy link

Allows using the postgres function strict_word_similarity for trigram matching, that, according to postgres, is

useful for finding the similarity to whole words, while word_similarity is more suitable for finding the similarity for parts of words

It's my first contribution, so I'm sorry if I miss something.

If this is something you would like to add to the project, I wonder if we should validate that word_similarity and strict_word_similarity options cannot both be given, as only one will be applied. Or even if it's worth it to make a breaking change and replace the word_similarity option by a similarity_function option, or something like that.

@nunesmatheus nunesmatheus marked this pull request as ready for review August 15, 2024 11:34
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.

1 participant