$ grep -ri
The search index is built with npm run build. It isn't available in astro dev.
npm run build
astro dev