Search
Question-first search — answer cards, not just links. Postgres FTS + pg_trgm. Alias/typo tolerant.
1 result for “wanted stars” — answer cards first.
claimpolice-recognition-clothingUNCONFIRMEDPRELIMINARY
Police recognition is affected by clothing
What would change this: Controlled test with fixed location/crime/vehicle, variable clothing, 20 runs, PS5 shipping build.
Last reviewed 8/18/2026See evidence & history →body_fts:0.50 · alias_exact:wanted stars
How search works
Postgres
full-text search + pg_trgm (trigram) with alias expansion. Query is matched against title, body, and entity_aliases; typo tolerance via similarity() ≥ 0.3 (tunable via CONFIG_KV search:trigram_threshold). Ranking: FTS rank × trigram bonus × alias bonus, deterministic tie-break by slug. Index updates are async via QUEUE_SEARCH_INDEX (60s SLA). No external vendor (Typesense/Algolia/etc.) and no AI free-association.Postgres SQL template is in
src/lib/search.ts:POSTGRES_SEARCH_SQL and src/app/api/search/route.ts; in-memory fixtures mirror it for local dev/tests without Hyperdrive.