Full Text Search in Milliseconds with Rails and PostgreSQL

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 #ruby #rubydeveloper #rubyonrails #search https://rubyonrails.ba/single/full-text-search-in-milliseconds-with-rails-and-postgresql

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles