Search index is generated at build time — run npm run build && npm run preview to use it locally.
npm run build && npm run preview