5
Question
When should PostgreSQL search use full-text, trigram, or both?
I need search across article titles and long bodies. Users also type incomplete words and make small spelling mistakes.
select id, title
from articles
where title ilike '%postgre%';
At roughly 300,000 rows this query is slowing down. How would you choose between a GIN full-text index and pg_trgm?