Full Text Search in Milliseconds with Rails and PostgreSQL · pganalyze
17-Apr-2020 1680
Imagine the following scenario: You have a database full of job titles and descriptions, and you’re trying to find the best match. Typically you’d start by using an ILIKE expression, but this requires the search phrase to be an exact match. Then you might use trigrams, allowing spelling mistakes and inexact matches based on word similarity, but this makes it difficult to search using multiple words. What you really want to use is Full Text Search, providing the benefits of ILIKE and trigrams, with the added ability to easily search through large documents using natural language.
Full Text Search in Milliseconds with Rails and PostgreSQL · pganalyze #ruby #rubydeveloper #rubyonrails #Search #Milliseconds #Rails #PostgreSQL #pganalyze #search https://rubyonrails.ba/link/full-text-search-in-milliseconds-with-rails-and-postgresql-pganalyze