Full-text search using postgresql #162

Merged
Oleg-Komarov merged 10 commits from fts into main 2024-06-03 20:07:23 +02:00
Owner

See #127: current search is too naive to be useful.
It does a simple substring match and doesn't do any ranking.

This is an attempt at making search more useful without introducing
more components into the project's infrastructure.

This introduces a discrepancy between sqlite and postgresql support:
sqlite keeps the old unsatisfying implementation.

We don't have any metrics for search quality, but we can reconstruct
search behavior from access logs: we see search terms and page
response size, that can indicate if we found any results.

If further improvements to search are required, we probably should
consider using meilisearch (or alternatives) for indexing.

See #127: current search is too naive to be useful. It does a simple substring match and doesn't do any ranking. This is an attempt at making search more useful without introducing more components into the project's infrastructure. This introduces a discrepancy between sqlite and postgresql support: sqlite keeps the old unsatisfying implementation. We don't have any metrics for search quality, but we can reconstruct search behavior from access logs: we see search terms and page response size, that can indicate if we found any results. If further improvements to search are required, we probably should consider using meilisearch (or alternatives) for indexing.
Oleg-Komarov added 9 commits 2024-06-03 19:58:48 +02:00
Oleg-Komarov added 1 commit 2024-06-03 20:03:15 +02:00
Anna Sirota approved these changes 2024-06-03 20:06:56 +02:00
Anna Sirota left a comment
Owner

LGTM 🚢

LGTM :ship:
Oleg-Komarov merged commit 66da158c99 into main 2024-06-03 20:07:23 +02:00
Oleg-Komarov deleted branch fts 2024-06-03 20:07:23 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/extensions-website#162
No description provided.