Search page: full-text query UI and results #32
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
A public search page at
/(or/search) where users enter a query and get ranked results from thepagestable.Acceptance criteria
plainto_tsquery(:config, :q)againstkeywords_tsv, config from user's detected language or a language selectorts_rank(keywords_tsv, query)score — ordered by rank desc, paginated (10/page)status = fetchedand non-nullkeywords_tsvappear in results{{ }})keywords_tsvrows (requires real PG), asserting results appear in correct rank orderNotes
plainto_tsqueryconfig: default tosimpleuntil a language selector is built;simpleworks across all languages (no stemming, but correct matches)ts_rankonly for v0.2. Link-count signal (inboundpage_linkscount) deferred to a follow-up once we have enough indexed pages to validate it adds value.paginate()works fine;simplePaginate()is cheaper if we don't need total count.