You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: search improvements — pagination, heading scroll, and body text indexing #129
Hardcoded LIMIT 20 — no pagination or cursor support for large result sets
Heading matches don't scroll — clicking a heading result navigates to the page but doesn't scroll to the `#anchor`
Static index only indexes headings — `build-search-index.ts` extracts headings but not prose body text, making full-text search incomplete (the runtime FTS index in `search.ts` does index body text, but the two are inconsistent)
BM25 weights are undocumented magic numbers — `bm25(search_fts, 10.0, 5.0, 1.0)` with no explanation of tuning rationale
Suggested Improvements
Add `offset`/`limit` query params to the search API
After navigating to a heading result, scroll the anchor into view on the client
Unify the two search indexing paths (static builder vs runtime builder)
Document or make configurable the BM25 weight tuning
Activity