sveltejs/svelte.dev

Docs search overly prioritizes tutorials

Open

#1,420 opened on Jul 16, 2025

View on GitHub
 (2 comments) (1 reaction) (0 assignees)Svelte (255 forks)github user discovery
docs (functionality)help wanted

Repository metrics

Stars
 (301 stars)
PR merge metrics
 (PR metrics pending)

Description

When I search the Svelte docs (like typing "req" to get to RequestEvent), the top results are mostly tutorials. In the attached example, five tutorial pages show up before the actual RequestEvent type, which is what I was trying to find.

Would it be possible to tweak the search ranking so that reference documentation is shown before tutorial content? I understand tutorials are important, but in many cases, someone searching a specific term is likely trying to jump directly to the corresponding doc page.

Contributor guide