Query and sort by relevance #9858
Unanswered
vnmedeiros
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello community,
I have a question: is it possible to utilize a function, such as levenshtein (https://www.postgresql.org/docs/9.1/fuzzystrmatch.html), to sort the outcomes of a search?
Here's the scenario: I conduct a search, and my preference is for the results to be organized based on their proximity (relevance) to the term within the variables.
variable:
I would like the names closest to "wonder" to be displayed first and the names with the highest degree of variation in the search term towards the end
Looking insights and suggestions!
Beta Was this translation helpful? Give feedback.
All reactions