Files
supabase/apps/docs/scripts
Jeremias Menichelli 611246ead5 feat: ingest sdk and reference pages to search v2 (#52458)
## Problem

Our current `search_v2` solution currently ignore reference pages, since
they are not in markdown format.

## Solution

Use the source model from _"search_v1"_ to ingest the `search_v2` table.

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

_Sadly, this cannot be tested until re-ingestion happens on our CI._

But here are some local tests...

<img width="666" height="278" alt="Screenshot 2026-10-28 at 16 59 45"
src="https://github.com/user-attachments/assets/9be67cb7-2598-42ce-86f7-3947e607588d"
/>

<img width="725" height="269" alt="Screenshot 2026-10-28 at 16 58 38"
src="https://github.com/user-attachments/assets/30a74c41-5a2e-48f8-8c82-24b40c80e738"
/>

---

Funny enough, with the same legacy source model, results are better
since this search ranks up the JavaScript method correctly, which our
current search doesn't.

<img width="713" height="640" alt="Screenshot 2026-10-28 at 16 56 59"
src="https://github.com/user-attachments/assets/e658ac24-7752-4e7b-baa4-b7fdca89de94"
/>

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-29 16:02:15 +01:00
..