![Ordering fuzzy search results by relevancy using trigrams cover image](https://www.ananunesdasilva.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBhQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--192e47edf94f17c7516e2757ef664e9ba069c771/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFJc0FXa0NMQUU9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--1720debe1f7917c7ab26aa8cb126ec525096cd9c/postgres-trigram-search.png)
Ordering fuzzy search results by relevancy using trigrams
May, 2021
In this article, I'll share how I've improved a search feature by ranking fuzzy string matches by similarity to the searched term. I'll also share how to improve the search performance with indexes.