Full-text search with PostgreSQL

Aperta
#14 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, python, supabase

Direzione di ricerca

Start in supabase/schema.sql at the game table to see the searchable columns (title, developer, genre, description) and how the existing genre/price filters are shaped. Add a generated tsvector column plus a GIN index and a ranking database function, then call it from backend/queries.py via rpc while keeping the current filters composable. Done means a search term returns ranked matches and the genre/price filters still work, with the migration steps written up in the PR.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

backend database enhancement help wanted

Store search should match words anywhere in the title, developer, genre and description, with the best matches first.

  • Add a generated tsvector column (or index) to game in supabase/schema.sql
  • Query it from backend/queries.py (e.g. via a database function called with rpc)
  • Keep the existing genre/price filters working alongside search
  • Explain the migration steps in the PR
Lingua principale
CSS
Stelle
1
Fork
1
Merge medio
39m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NotADIM2/GameVault

Tutte le issue di NotADIM2/GameVault

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.