PostgreSQL full-text search vs pg_trgm for a Q&A site

posée 17 days ago305 vuesen

4

Building search for a Q&A platform. Should I use tsvector/tsquery or the pg_trgm extension for fuzzy title matching? Content is multilingual.

🤖 Diagnostic IA

Généré par IA. Ce n'est pas une réponse — la communauté ci-dessous le confirme ou le corrige. Vérifiez toujours avant de vous y fier.

posée 17 days ago
  • Thanks, this helped. Did you also try clearing the cache?

    jamesetienne 5 days ago

1 réponse

3
Réponse acceptée

For a multilingual Q&A site use tsvector with the simple configuration (no language-specific stemming) plus pg_trgm on the title for fuzzy matches. Combine ranks: ts_rank_cd for body, similarity() for title, weighted.

Connectez-vous pour dire si ça a marché.

answered 17 days ago

Sign in and verify your email to post an answer.