About Fuzzy Full-text Search
When you need approximate full-text search results for searches with spelling mistakes in the query, with different word endings, or without diacritical symbols, you can use Trigram search in PostgreSQL.
Here's how it could look in a Django queryset:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
For this, you will need to install pg_trgm
extension to your PostgreSQL database as a superuser:
1 2 |
|
Tips and Tricks Programming Development Databases Django 5.x Django 4.2 Django 3.2 PostgreSQL
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.